#33148D#33148D

#33148D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.6% C 0.178 H 282.9°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#33148D
RGBrgb(51, 20, 141)
HSLhsl(255, 75%, 32%)
HSVhsv(255, 86%, 55%)
CMYKcmyk(63.8%, 85.8%, 0%, 44.7%)
CIE-LABlab(20.54, 46.13, -60.21)
CIE-LCHlch(20.54, 75.84, 307.46°)
OKLaboklab(33.62% 0.0398 -0.1736)
OKLCHoklch(33.62% 0.178 282.9)
XYZxyz(6.4216, 3.1267, 25.4593)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33148D #6E8D14
analogous
#14328D #33148D #70148D
triadic
#33148D #8D3314 #148D33
tetradic
#33148D #8D1432 #6E8D14 #148D70
square
#33148D #8D1432 #6E8D14 #148D70
split-complementary
#33148D #8D7014 #328D14
monochromatic
#0C0522 #200C57 #33148D #461CC3 #6439E3

Accessibility & contrast

On white

12.92
#33148D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#33148D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33148D
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33148D#FFFFFF#000000##FFFFFF
##33148D1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003590
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #33148d;
/* rgb */ color: rgb(51, 20, 141);
/* oklch */ color: oklch(33.6% 0.178 282.9);
Tailwind
colors: {
  custom: {
    50: '#7858b0',
    500: '#33148d',
    950: '#000000',
  },
}
SCSS
$custom: #33148d;
$custom-light: #7858b0;
$custom-dark: #000000;
JSON
{
  "hex": "#33148d",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 141
  },
  "hsl": {
    "h": 255.372,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33619,
    "c": 0.17812,
    "h": 282.9
  },
  "luminance": 0.03127
}

Semantic roles & 50–950 ramp

primary
#33148D
secondary
#9FC13C
accent
#F236C2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #33148D

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

Preview Lab → · Contrast checker → · Palette generator →

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