#3E237B#3E237B

#3E237B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.7% C 0.140 H 291.4°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#3E237B
RGBrgb(62, 35, 123)
HSLhsl(258, 56%, 31%)
HSVhsv(258, 72%, 48%)
CMYKcmyk(49.6%, 71.5%, 0%, 51.8%)
CIE-LABlab(22.50, 34.91, -45.61)
CIE-LCHlch(22.50, 57.44, 307.43°)
OKLaboklab(34.72% 0.0513 -0.1307)
OKLCHoklch(34.72% 0.14 291.4)
XYZxyz(6.1618, 3.6560, 19.1161)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E237B #607B23
analogous
#23347B #3E237B #6A237B
triadic
#3E237B #7B3E23 #237B3E
tetradic
#3E237B #7B2334 #607B23 #237B6A
square
#3E237B #7B2334 #607B23 #237B6A
split-complementary
#3E237B #7B6A23 #347B23
monochromatic
#0E081C #26154B #3E237B #5631AB #734CCC

Accessibility & contrast

On white

12.13
#3E237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3E237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E237B
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E237B#FFFFFF#000000##FFFFFF
##3E237B1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#2B394C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e237b;
/* rgb */ color: rgb(62, 35, 123);
/* oklch */ color: oklch(34.7% 0.140 291.4);
Tailwind
colors: {
  custom: {
    50: '#7a60a2',
    500: '#3e237b',
    950: '#000000',
  },
}
SCSS
$custom: #3e237b;
$custom-light: #7a60a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e237b",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 258.409,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34719,
    "c": 0.14041,
    "h": 291.4
  },
  "luminance": 0.03656
}

Semantic roles & 50–950 ramp

primary
#3E237B
secondary
#90AE4C
accent
#DF49B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E237B

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

Preview Lab → · Contrast checker → · Palette generator →

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