#33188A#33188A

#33188A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.171 H 283.1°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#33188A
RGBrgb(51, 24, 138)
HSLhsl(254, 70%, 32%)
HSVhsv(254, 83%, 54%)
CMYKcmyk(63%, 82.6%, 0%, 45.9%)
CIE-LABlab(20.80, 43.51, -57.92)
CIE-LCHlch(20.80, 72.44, 306.92°)
OKLaboklab(33.69% 0.0387 -0.167)
OKLCHoklch(33.69% 0.171 283.1)
XYZxyz(6.2779, 3.1916, 24.3251)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33188A #6F8A18
analogous
#18368A #33188A #6C188A
triadic
#33188A #8A3318 #188A33
tetradic
#33188A #8A1836 #6F8A18 #188A6C
square
#33188A #8A1836 #6F8A18 #188A6C
split-complementary
#33188A #8A6C18 #368A18
monochromatic
#0C0622 #200F56 #33188A #4621BE #643FDE

Accessibility & contrast

On white

12.82
#33188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #33188A
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33188A#FFFFFF#000000##FFFFFF
##33188A1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #33188a;
/* rgb */ color: rgb(51, 24, 138);
/* oklch */ color: oklch(33.7% 0.171 283.1);
Tailwind
colors: {
  custom: {
    50: '#775aad',
    500: '#33188a',
    950: '#000000',
  },
}
SCSS
$custom: #33188a;
$custom-light: #775aad;
$custom-dark: #000000;
JSON
{
  "hex": "#33188a",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 254.211,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33692,
    "c": 0.17145,
    "h": 283.1
  },
  "luminance": 0.03192
}

Semantic roles & 50–950 ramp

primary
#33188A
secondary
#A0BD40
accent
#ED3BC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #33188A

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

Preview Lab → · Contrast checker → · Palette generator →

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