#33187D#33187D

#33187D is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.156 H 286.0°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#33187D
RGBrgb(51, 24, 125)
HSLhsl(256, 68%, 29%)
HSVhsv(256, 81%, 49%)
CMYKcmyk(59.2%, 80.8%, 0%, 51%)
CIE-LABlab(19.38, 39.62, -52.04)
CIE-LCHlch(19.38, 65.41, 307.28°)
OKLaboklab(32.29% 0.043 -0.1499)
OKLCHoklch(32.29% 0.156 286)
XYZxyz(5.3924, 2.8374, 19.6616)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33187D #627D18
analogous
#182F7D #33187D #66187D
triadic
#33187D #7D3318 #187D33
tetradic
#33187D #7D182F #627D18 #187D66
square
#33187D #7D182F #627D18 #187D66
split-complementary
#33187D #7D6618 #2F7D18
monochromatic
#0A051A #1E0E4A #33187D #4822B0 #6237D9

Accessibility & contrast

On white

13.40
#33187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #33187D
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33187D#FFFFFF#000000##FFFFFF
##33187D1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#0D354A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #33187d;
/* rgb */ color: rgb(51, 24, 125);
/* oklch */ color: oklch(32.3% 0.156 286.0);
Tailwind
colors: {
  custom: {
    50: '#7559a4',
    500: '#33187d',
    950: '#000000',
  },
}
SCSS
$custom: #33187d;
$custom-light: #7559a4;
$custom-dark: #000000;
JSON
{
  "hex": "#33187d",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 256.04,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32287,
    "c": 0.15594,
    "h": 286
  },
  "luminance": 0.02838
}

Semantic roles & 50–950 ramp

primary
#33187D
secondary
#93B23F
accent
#EB3DBC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #33187D

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

Preview Lab → · Contrast checker → · Palette generator →

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