#33187E#33187E

#33187E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.157 H 285.8°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#33187E
RGBrgb(51, 24, 126)
HSLhsl(256, 68%, 29%)
HSVhsv(256, 81%, 49%)
CMYKcmyk(59.5%, 81%, 0%, 50.6%)
CIE-LABlab(19.49, 39.92, -52.50)
CIE-LCHlch(19.49, 65.96, 307.25°)
OKLaboklab(32.39% 0.0427 -0.1512)
OKLCHoklch(32.39% 0.157 285.8)
XYZxyz(5.4566, 2.8631, 19.9997)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33187E #637E18
analogous
#18307E #33187E #66187E
triadic
#33187E #7E3318 #187E33
tetradic
#33187E #7E1830 #637E18 #187E66
square
#33187E #7E1830 #637E18 #187E66
split-complementary
#33187E #7E6618 #307E18
monochromatic
#0A051A #1E0E4B #33187E #4822B1 #6237D9

Accessibility & contrast

On white

13.35
#33187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#33187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33187E
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33187E#FFFFFF#000000##FFFFFF
##33187E1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#0C364B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #33187e;
/* rgb */ color: rgb(51, 24, 126);
/* oklch */ color: oklch(32.4% 0.157 285.8);
Tailwind
colors: {
  custom: {
    50: '#7559a4',
    500: '#33187e',
    950: '#000000',
  },
}
SCSS
$custom: #33187e;
$custom-light: #7559a4;
$custom-dark: #000000;
JSON
{
  "hex": "#33187e",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 255.882,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32394,
    "c": 0.15714,
    "h": 285.8
  },
  "luminance": 0.02863
}

Semantic roles & 50–950 ramp

primary
#33187E
secondary
#94B23F
accent
#EB3DBD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #33187E

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

Preview Lab → · Contrast checker → · Palette generator →

#33187E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva