#33187F#33187F

#33187F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.158 H 285.5°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#33187F
RGBrgb(51, 24, 127)
HSLhsl(256, 68%, 30%)
HSVhsv(256, 81%, 50%)
CMYKcmyk(59.8%, 81.1%, 0%, 50.2%)
CIE-LABlab(19.59, 40.23, -52.96)
CIE-LCHlch(19.59, 66.51, 307.22°)
OKLaboklab(32.5% 0.0424 -0.1526)
OKLCHoklch(32.5% 0.158 285.5)
XYZxyz(5.5215, 2.8890, 20.3413)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33187F #647F18
analogous
#18317F #33187F #67187F
triadic
#33187F #7F3318 #187F33
tetradic
#33187F #7F1831 #647F18 #187F67
square
#33187F #7F1831 #647F18 #187F67
split-complementary
#33187F #7F6718 #317F18
monochromatic
#0A051A #1E0E4C #33187F #4822B2 #6238D9

Accessibility & contrast

On white

13.31
#33187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#33187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33187F
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33187F#FFFFFF#000000##FFFFFF
##33187F1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#0A364B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #33187f;
/* rgb */ color: rgb(51, 24, 127);
/* oklch */ color: oklch(32.5% 0.158 285.5);
Tailwind
colors: {
  custom: {
    50: '#7559a5',
    500: '#33187f',
    950: '#000000',
  },
}
SCSS
$custom: #33187f;
$custom-light: #7559a5;
$custom-dark: #000000;
JSON
{
  "hex": "#33187f",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 255.728,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.325,
    "c": 0.15834,
    "h": 285.5
  },
  "luminance": 0.02889
}

Semantic roles & 50–950 ramp

primary
#33187F
secondary
#95B33F
accent
#EB3DBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #33187F

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

Preview Lab → · Contrast checker → · Palette generator →

#33187F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva