#3D238F#3D238F

#3D238F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.166 H 285.9°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#3D238F
RGBrgb(61, 35, 143)
HSLhsl(254, 61%, 35%)
HSVhsv(254, 76%, 56%)
CMYKcmyk(57.3%, 75.5%, 0%, 43.9%)
CIE-LABlab(24.25, 40.80, -55.31)
CIE-LCHlch(24.25, 68.73, 306.42°)
OKLaboklab(36.5% 0.0453 -0.1592)
OKLCHoklch(36.5% 0.166 285.9)
XYZxyz(7.4819, 4.1769, 26.3932)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D238F #758F23
analogous
#233F8F #3D238F #73238F
triadic
#3D238F #8F3D23 #238F3D
tetradic
#3D238F #8F233F #758F23 #238F73
square
#3D238F #8F233F #758F23 #238F73
split-complementary
#3D238F #8F7323 #3F8F23
monochromatic
#130B2D #28175E #3D238F #522FC0 #7557D6

Accessibility & contrast

On white

11.44
#3D238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3D238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D238F
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D238F#FFFFFF#000000##FFFFFF
##3D238F1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#164157
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3d238f;
/* rgb */ color: rgb(61, 35, 143);
/* oklch */ color: oklch(36.5% 0.166 285.9);
Tailwind
colors: {
  custom: {
    50: '#7c61b1',
    500: '#3d238f',
    950: '#000000',
  },
}
SCSS
$custom: #3d238f;
$custom-light: #7c61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d238f",
  "rgb": {
    "r": 61,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 254.444,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36505,
    "c": 0.16553,
    "h": 285.9
  },
  "luminance": 0.04177
}

Semantic roles & 50–950 ramp

primary
#3D238F
secondary
#A1BA54
accent
#E444BD
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3D238F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#3D238F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva