#3C237B#3C237B

#3C237B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.140 H 290.1°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#3C237B
RGBrgb(60, 35, 123)
HSLhsl(257, 56%, 31%)
HSVhsv(257, 72%, 48%)
CMYKcmyk(51.2%, 71.5%, 0%, 51.8%)
CIE-LABlab(22.28, 34.53, -45.99)
CIE-LCHlch(22.28, 57.51, 306.90°)
OKLaboklab(34.51% 0.0482 -0.1319)
OKLCHoklch(34.51% 0.14 290.1)
XYZxyz(6.0386, 3.5925, 19.1103)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C237B #627B23
analogous
#23367B #3C237B #68237B
triadic
#3C237B #7B3C23 #237B3C
tetradic
#3C237B #7B2336 #627B23 #237B68
square
#3C237B #7B2336 #627B23 #237B68
split-complementary
#3C237B #7B6823 #367B23
monochromatic
#0E081C #25154B #3C237B #5331AB #714CCC

Accessibility & contrast

On white

12.22
#3C237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3C237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C237B
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C237B#FFFFFF#000000##FFFFFF
##3C237B1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#27394C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3c237b;
/* rgb */ color: rgb(60, 35, 123);
/* oklch */ color: oklch(34.5% 0.140 290.1);
Tailwind
colors: {
  custom: {
    50: '#7860a2',
    500: '#3c237b',
    950: '#000000',
  },
}
SCSS
$custom: #3c237b;
$custom-light: #7860a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3c237b",
  "rgb": {
    "r": 60,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 257.045,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34506,
    "c": 0.14043,
    "h": 290.1
  },
  "luminance": 0.03593
}

Semantic roles & 50–950 ramp

primary
#3C237B
secondary
#92AE4C
accent
#DF49B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3C237B

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

Preview Lab → · Contrast checker → · Palette generator →

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