#3B237A#3B237A

#3B237A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.139 H 289.7°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#3B237A
RGBrgb(59, 35, 122)
HSLhsl(257, 55%, 31%)
HSVhsv(257, 71%, 48%)
CMYKcmyk(51.6%, 71.3%, 0%, 52.2%)
CIE-LABlab(22.08, 34.03, -45.68)
CIE-LCHlch(22.08, 56.96, 306.69°)
OKLaboklab(34.31% 0.0468 -0.131)
OKLCHoklch(34.31% 0.139 289.7)
XYZxyz(5.9165, 3.5368, 18.7795)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B237A #627A23
analogous
#23367A #3B237A #66237A
triadic
#3B237A #7A3B23 #237A3B
tetradic
#3B237A #7A2336 #627A23 #237A66
square
#3B237A #7A2336 #627A23 #237A66
split-complementary
#3B237A #7A6623 #367A23
monochromatic
#0D081B #24154A #3B237A #5231AA #6F4CCC

Accessibility & contrast

On white

12.30
#3B237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3B237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B237A
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B237A#FFFFFF#000000##FFFFFF
##3B237A1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b237a;
/* rgb */ color: rgb(59, 35, 122);
/* oklch */ color: oklch(34.3% 0.139 289.7);
Tailwind
colors: {
  custom: {
    50: '#7860a1',
    500: '#3b237a',
    950: '#000000',
  },
}
SCSS
$custom: #3b237a;
$custom-light: #7860a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b237a",
  "rgb": {
    "r": 59,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 256.552,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3431,
    "c": 0.13915,
    "h": 289.7
  },
  "luminance": 0.03537
}

Semantic roles & 50–950 ramp

primary
#3B237A
secondary
#92AD4C
accent
#DF49B5
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3B237A

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

Preview Lab → · Contrast checker → · Palette generator →

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