#33188B#33188B

#33188B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.173 H 282.8°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#33188B
RGBrgb(51, 24, 139)
HSLhsl(254, 71%, 32%)
HSVhsv(254, 83%, 55%)
CMYKcmyk(63.3%, 82.7%, 0%, 45.5%)
CIE-LABlab(20.91, 43.81, -58.36)
CIE-LCHlch(20.91, 72.97, 306.90°)
OKLaboklab(33.8% 0.0384 -0.1683)
OKLCHoklch(33.8% 0.173 282.8)
XYZxyz(6.3506, 3.2207, 24.7081)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33188B #708B18
analogous
#18378B #33188B #6D188B
triadic
#33188B #8B3318 #188B33
tetradic
#33188B #8B1837 #708B18 #188B6D
square
#33188B #8B1837 #708B18 #188B6D
split-complementary
#33188B #8B6D18 #378B18
monochromatic
#0D0623 #200F57 #33188B #4621BF #653FDE

Accessibility & contrast

On white

12.77
#33188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#33188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33188B
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33188B#FFFFFF#000000##FFFFFF
##33188B1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #33188b;
/* rgb */ color: rgb(51, 24, 139);
/* oklch */ color: oklch(33.8% 0.173 282.8);
Tailwind
colors: {
  custom: {
    50: '#775aae',
    500: '#33188b',
    950: '#000000',
  },
}
SCSS
$custom: #33188b;
$custom-light: #775aae;
$custom-dark: #000000;
JSON
{
  "hex": "#33188b",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 254.087,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33802,
    "c": 0.17262,
    "h": 282.8
  },
  "luminance": 0.03221
}

Semantic roles & 50–950 ramp

primary
#33188B
secondary
#A1BE40
accent
#ED3AC3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #33188B

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

Preview Lab → · Contrast checker → · Palette generator →

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