#33157D#33157D

#33157D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.159 H 286.5°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#33157D
RGBrgb(51, 21, 125)
HSLhsl(257, 71%, 29%)
HSVhsv(257, 83%, 49%)
CMYKcmyk(59.2%, 83.2%, 0%, 51%)
CIE-LABlab(18.89, 41.05, -52.86)
CIE-LCHlch(18.89, 66.92, 307.83°)
OKLaboklab(31.95% 0.045 -0.1522)
OKLCHoklch(31.95% 0.159 286.5)
XYZxyz(5.3340, 2.7205, 19.6421)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33157D #5F7D15
analogous
#152B7D #33157D #67157D
triadic
#33157D #7D3315 #157D33
tetradic
#33157D #7D152B #5F7D15 #157D67
square
#33157D #7D152B #5F7D15 #157D67
split-complementary
#33157D #7D6715 #2B7D15
monochromatic
#0B041A #1E0C49 #33157D #481EB1 #6230DC

Accessibility & contrast

On white

13.60
#33157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#33157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33157D
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33157D#FFFFFF#000000##FFFFFF
##33157D1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#0E344A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #33157d;
/* rgb */ color: rgb(51, 21, 125);
/* oklch */ color: oklch(31.9% 0.159 286.5);
Tailwind
colors: {
  custom: {
    50: '#7557a4',
    500: '#33157d',
    950: '#000000',
  },
}
SCSS
$custom: #33157d;
$custom-light: #7557a4;
$custom-dark: #000000;
JSON
{
  "hex": "#33157d",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 257.308,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31945,
    "c": 0.15874,
    "h": 286.5
  },
  "luminance": 0.02721
}

Semantic roles & 50–950 ramp

primary
#33157D
secondary
#90B23C
accent
#EE3ABA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #33157D

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

Preview Lab → · Contrast checker → · Palette generator →

#33157D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva