#33188F#33188F

#33188F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.177 H 282.1°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#33188F
RGBrgb(51, 24, 143)
HSLhsl(254, 71%, 33%)
HSVhsv(254, 83%, 56%)
CMYKcmyk(64.3%, 83.2%, 0%, 43.9%)
CIE-LABlab(21.36, 44.99, -60.11)
CIE-LCHlch(21.36, 75.08, 306.82°)
OKLaboklab(34.24% 0.037 -0.1734)
OKLCHoklch(34.24% 0.177 282.1)
XYZxyz(6.6482, 3.3398, 26.2756)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33188F #748F18
analogous
#18398F #33188F #6E188F
triadic
#33188F #8F3318 #188F33
tetradic
#33188F #8F1839 #748F18 #188F6E
square
#33188F #8F1839 #748F18 #188F6E
split-complementary
#33188F #8F6E18 #398F18
monochromatic
#0E0626 #200F5B #33188F #4621C3 #6642DF

Accessibility & contrast

On white

12.59
#33188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#33188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33188F
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33188F#FFFFFF#000000##FFFFFF
##33188F1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #33188f;
/* rgb */ color: rgb(51, 24, 143);
/* oklch */ color: oklch(34.2% 0.177 282.1);
Tailwind
colors: {
  custom: {
    50: '#785ab1',
    500: '#33188f',
    950: '#000000',
  },
}
SCSS
$custom: #33188f;
$custom-light: #785ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#33188f",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 253.613,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34245,
    "c": 0.17732,
    "h": 282.1
  },
  "luminance": 0.0334
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #33188F

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

Preview Lab → · Contrast checker → · Palette generator →

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