#3D237A#3D237A

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

Color values

HEX#3D237A
RGBrgb(61, 35, 122)
HSLhsl(258, 55%, 31%)
HSVhsv(258, 71%, 48%)
CMYKcmyk(50%, 71.3%, 0%, 52.2%)
CIE-LABlab(22.30, 34.42, -45.31)
CIE-LCHlch(22.30, 56.90, 307.22°)
OKLaboklab(34.52% 0.0499 -0.1299)
OKLCHoklch(34.52% 0.139 291)
XYZxyz(6.0374, 3.5991, 18.7852)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D237A #607A23
analogous
#23347A #3D237A #68237A
triadic
#3D237A #7A3D23 #237A3D
tetradic
#3D237A #7A2334 #607A23 #237A68
square
#3D237A #7A2334 #607A23 #237A68
split-complementary
#3D237A #7A6823 #347A23
monochromatic
#0D081B #25154A #3D237A #5531AA #724CCC

Accessibility & contrast

On white

12.21
#3D237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D237A
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D237A#FFFFFF#000000##FFFFFF
##3D237A1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#29394B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d237a;
/* rgb */ color: rgb(61, 35, 122);
/* oklch */ color: oklch(34.5% 0.139 291.0);
Tailwind
colors: {
  custom: {
    50: '#7960a1',
    500: '#3d237a',
    950: '#000000',
  },
}
SCSS
$custom: #3d237a;
$custom-light: #7960a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d237a",
  "rgb": {
    "r": 61,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 257.931,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34521,
    "c": 0.13913,
    "h": 291
  },
  "luminance": 0.03599
}

Semantic roles & 50–950 ramp

primary
#3D237A
secondary
#90AD4C
accent
#DF49B2
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3D237A

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

Preview Lab → · Contrast checker → · Palette generator →

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