#33157B#33157B

#33157B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.156 H 287.0°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#33157B
RGBrgb(51, 21, 123)
HSLhsl(258, 71%, 28%)
HSVhsv(258, 83%, 48%)
CMYKcmyk(58.5%, 82.9%, 0%, 51.8%)
CIE-LABlab(18.67, 40.46, -51.94)
CIE-LCHlch(18.67, 65.84, 307.92°)
OKLaboklab(31.73% 0.0457 -0.1495)
OKLCHoklch(31.73% 0.156 287)
XYZxyz(5.2075, 2.6699, 18.9760)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33157B #5D7B15
analogous
#152A7B #33157B #66157B
triadic
#33157B #7B3315 #157B33
tetradic
#33157B #7B152A #5D7B15 #157B66
square
#33157B #7B152A #5D7B15 #157B66
split-complementary
#33157B #7B6615 #2A7B15
monochromatic
#0B041A #1D0C47 #33157B #491EAF #622FDB

Accessibility & contrast

On white

13.69
#33157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#33157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33157B
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33157B#FFFFFF#000000##FFFFFF
##33157B1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#113348
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #33157b;
/* rgb */ color: rgb(51, 21, 123);
/* oklch */ color: oklch(31.7% 0.156 287.0);
Tailwind
colors: {
  custom: {
    50: '#7457a2',
    500: '#33157b',
    950: '#000000',
  },
}
SCSS
$custom: #33157b;
$custom-light: #7457a2;
$custom-dark: #000000;
JSON
{
  "hex": "#33157b",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 257.647,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3173,
    "c": 0.15639,
    "h": 287
  },
  "luminance": 0.0267
}

Semantic roles & 50–950 ramp

primary
#33157B
secondary
#8EB03B
accent
#EE3AB9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #33157B

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

Preview Lab → · Contrast checker → · Palette generator →

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