#33188E#33188E

#33188E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.176 H 282.2°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#33188E
RGBrgb(51, 24, 142)
HSLhsl(254, 71%, 33%)
HSVhsv(254, 83%, 56%)
CMYKcmyk(64.1%, 83.1%, 0%, 44.3%)
CIE-LABlab(21.24, 44.70, -59.67)
CIE-LCHlch(21.24, 74.56, 306.83°)
OKLaboklab(34.13% 0.0374 -0.1721)
OKLCHoklch(34.13% 0.176 282.2)
XYZxyz(6.5728, 3.3096, 25.8784)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33188E #738E18
analogous
#18388E #33188E #6E188E
triadic
#33188E #8E3318 #188E33
tetradic
#33188E #8E1838 #738E18 #188E6E
square
#33188E #8E1838 #738E18 #188E6E
split-complementary
#33188E #8E6E18 #388E18
monochromatic
#0D0625 #200F5A #33188E #4621C2 #6541DF

Accessibility & contrast

On white

12.64
#33188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#33188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33188E
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33188E#FFFFFF#000000##FFFFFF
##33188E1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #33188e;
/* rgb */ color: rgb(51, 24, 142);
/* oklch */ color: oklch(34.1% 0.176 282.2);
Tailwind
colors: {
  custom: {
    50: '#785ab0',
    500: '#33188e',
    950: '#000000',
  },
}
SCSS
$custom: #33188e;
$custom-light: #785ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#33188e",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 253.729,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34134,
    "c": 0.17615,
    "h": 282.2
  },
  "luminance": 0.0331
}

Semantic roles & 50–950 ramp

primary
#33188E
secondary
#A3C042
accent
#EE3AC5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #33188E

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

Preview Lab → · Contrast checker → · Palette generator →

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