#3E238B#3E238B

#3E238B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.161 H 287.3°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#3E238B
RGBrgb(62, 35, 139)
HSLhsl(256, 60%, 34%)
HSVhsv(256, 75%, 55%)
CMYKcmyk(55.4%, 74.8%, 0%, 45.5%)
CIE-LABlab(23.97, 39.75, -53.28)
CIE-LCHlch(23.97, 66.47, 306.72°)
OKLaboklab(36.21% 0.0478 -0.1532)
OKLCHoklch(36.21% 0.161 287.3)
XYZxyz(7.2465, 4.0899, 24.8287)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E238B #708B23
analogous
#233C8B #3E238B #72238B
triadic
#3E238B #8B3E23 #238B3E
tetradic
#3E238B #8B233C #708B23 #238B72
square
#3E238B #8B233C #708B23 #238B72
split-complementary
#3E238B #8B7223 #3C8B23
monochromatic
#120A29 #28175A #3E238B #542FBC #7654D4

Accessibility & contrast

On white

11.55
#3E238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3E238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E238B
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E238B#FFFFFF#000000##FFFFFF
##3E238B1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#1E3F55
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3e238b;
/* rgb */ color: rgb(62, 35, 139);
/* oklch */ color: oklch(36.2% 0.161 287.3);
Tailwind
colors: {
  custom: {
    50: '#7c61ae',
    500: '#3e238b',
    950: '#000000',
  },
}
SCSS
$custom: #3e238b;
$custom-light: #7c61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3e238b",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 255.577,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36213,
    "c": 0.16052,
    "h": 287.3
  },
  "luminance": 0.0409
}

Semantic roles & 50–950 ramp

primary
#3E238B
secondary
#9DB852
accent
#E345BA
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E238B

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

Preview Lab → · Contrast checker → · Palette generator →

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