#3D237E#3D237E

#3D237E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.144 H 289.9°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#3D237E
RGBrgb(61, 35, 126)
HSLhsl(257, 57%, 32%)
HSVhsv(257, 72%, 49%)
CMYKcmyk(51.6%, 72.2%, 0%, 50.6%)
CIE-LABlab(22.65, 35.63, -47.27)
CIE-LCHlch(22.65, 59.19, 307.01°)
OKLaboklab(34.89% 0.0492 -0.1356)
OKLCHoklch(34.89% 0.144 289.9)
XYZxyz(6.2903, 3.7003, 20.1174)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D237E #647E23
analogous
#23377E #3D237E #6B237E
triadic
#3D237E #7E3D23 #237E3D
tetradic
#3D237E #7E2337 #647E23 #237E6B
square
#3D237E #7E2337 #647E23 #237E6B
split-complementary
#3D237E #7E6B23 #377E23
monochromatic
#0F081E #26164E #3D237E #5430AE #724ECE

Accessibility & contrast

On white

12.07
#3D237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3D237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D237E
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D237E#FFFFFF#000000##FFFFFF
##3D237E1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#273A4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d237e;
/* rgb */ color: rgb(61, 35, 126);
/* oklch */ color: oklch(34.9% 0.144 289.9);
Tailwind
colors: {
  custom: {
    50: '#7960a4',
    500: '#3d237e',
    950: '#000000',
  },
}
SCSS
$custom: #3d237e;
$custom-light: #7960a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3d237e",
  "rgb": {
    "r": 61,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 257.143,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34886,
    "c": 0.14425,
    "h": 289.9
  },
  "luminance": 0.03701
}

Semantic roles & 50–950 ramp

primary
#3D237E
secondary
#94B04C
accent
#E048B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3D237E

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

Preview Lab → · Contrast checker → · Palette generator →

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