#33147E#33147E

#33147E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.161 H 286.4°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#33147E
RGBrgb(51, 20, 126)
HSLhsl(258, 73%, 29%)
HSVhsv(258, 84%, 49%)
CMYKcmyk(59.5%, 84.1%, 0%, 50.6%)
CIE-LABlab(18.84, 41.79, -53.56)
CIE-LCHlch(18.84, 67.94, 307.96°)
OKLaboklab(31.95% 0.0453 -0.1543)
OKLCHoklch(31.95% 0.161 286.4)
XYZxyz(5.3802, 2.7102, 19.9742)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33147E #5F7E14
analogous
#142A7E #33147E #68147E
triadic
#33147E #7E3314 #147E33
tetradic
#33147E #7E142A #5F7E14 #147E68
square
#33147E #7E142A #5F7E14 #147E68
split-complementary
#33147E #7E6814 #2A7E14
monochromatic
#0B041A #1E0C49 #33147E #481CB3 #622EDE

Accessibility & contrast

On white

13.62
#33147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#33147E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33147E
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33147E#FFFFFF#000000##FFFFFF
##33147E1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#0C344A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #33147e;
/* rgb */ color: rgb(51, 20, 126);
/* oklch */ color: oklch(31.9% 0.161 286.4);
Tailwind
colors: {
  custom: {
    50: '#7557a4',
    500: '#33147e',
    950: '#000000',
  },
}
SCSS
$custom: #33147e;
$custom-light: #7557a4;
$custom-dark: #000000;
JSON
{
  "hex": "#33147e",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 257.547,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31947,
    "c": 0.16079,
    "h": 286.4
  },
  "luminance": 0.0271
}

Semantic roles & 50–950 ramp

primary
#33147E
secondary
#90B33A
accent
#EF38BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #33147E

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

Preview Lab → · Contrast checker → · Palette generator →

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