#33237B#33237B

#33237B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.141 H 284.1°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#33237B
RGBrgb(51, 35, 123)
HSLhsl(251, 56%, 31%)
HSVhsv(251, 72%, 48%)
CMYKcmyk(58.5%, 71.5%, 0%, 51.8%)
CIE-LABlab(21.34, 32.91, -47.55)
CIE-LCHlch(21.34, 57.83, 304.69°)
OKLaboklab(33.61% 0.0345 -0.1368)
OKLCHoklch(33.61% 0.141 284.1)
XYZxyz(5.5403, 3.3356, 19.0869)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33237B #6B7B23
analogous
#233F7B #33237B #5F237B
triadic
#33237B #7B3323 #237B33
tetradic
#33237B #7B233F #6B7B23 #237B5F
square
#33237B #7B233F #6B7B23 #237B5F
split-complementary
#33237B #7B5F23 #3F7B23
monochromatic
#0B081C #1F154B #33237B #4731AB #644CCC

Accessibility & contrast

On white

12.60
#33237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#33237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33237B
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33237B#FFFFFF#000000##FFFFFF
##33237B1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#0F3A4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #33237b;
/* rgb */ color: rgb(51, 35, 123);
/* oklch */ color: oklch(33.6% 0.141 284.1);
Tailwind
colors: {
  custom: {
    50: '#735fa2',
    500: '#33237b',
    950: '#000000',
  },
}
SCSS
$custom: #33237b;
$custom-light: #735fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#33237b",
  "rgb": {
    "r": 51,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 250.909,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33612,
    "c": 0.14109,
    "h": 284.1
  },
  "luminance": 0.03336
}

Semantic roles & 50–950 ramp

primary
#33237B
secondary
#9CAE4C
accent
#DF49C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #33237B

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

Preview Lab → · Contrast checker → · Palette generator →

#33237B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva