#3B237D#3B237D

#3B237D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.143 H 288.9°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#3B237D
RGBrgb(59, 35, 125)
HSLhsl(256, 56%, 31%)
HSVhsv(256, 72%, 49%)
CMYKcmyk(52.8%, 72%, 0%, 51%)
CIE-LABlab(22.35, 34.96, -47.15)
CIE-LCHlch(22.35, 58.69, 306.56°)
OKLaboklab(34.59% 0.0463 -0.1353)
OKLCHoklch(34.59% 0.143 288.9)
XYZxyz(6.1053, 3.6123, 19.7736)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B237D #657D23
analogous
#23387D #3B237D #68237D
triadic
#3B237D #7D3B23 #237D3B
tetradic
#3B237D #7D2338 #657D23 #237D68
square
#3B237D #7D2338 #657D23 #237D68
split-complementary
#3B237D #7D6823 #387D23
monochromatic
#0E081D #24164D #3B237D #5230AD #6F4DCD

Accessibility & contrast

On white

12.19
#3B237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B237D
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B237D#FFFFFF#000000##FFFFFF
##3B237D1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#233A4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3b237d;
/* rgb */ color: rgb(59, 35, 125);
/* oklch */ color: oklch(34.6% 0.143 288.9);
Tailwind
colors: {
  custom: {
    50: '#7860a3',
    500: '#3b237d',
    950: '#000000',
  },
}
SCSS
$custom: #3b237d;
$custom-light: #7860a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3b237d",
  "rgb": {
    "r": 59,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 256,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34586,
    "c": 0.14303,
    "h": 288.9
  },
  "luminance": 0.03613
}

Semantic roles & 50–950 ramp

primary
#3B237D
secondary
#95AF4C
accent
#E048B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3B237D

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

Preview Lab → · Contrast checker → · Palette generator →

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