#33148A#33148A

#33148A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.3% C 0.175 H 283.5°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#33148A
RGBrgb(51, 20, 138)
HSLhsl(256, 75%, 31%)
HSVhsv(256, 86%, 54%)
CMYKcmyk(63%, 85.5%, 0%, 45.9%)
CIE-LABlab(20.20, 45.26, -58.90)
CIE-LCHlch(20.20, 74.28, 307.54°)
OKLaboklab(33.28% 0.0409 -0.1698)
OKLCHoklch(33.28% 0.175 283.5)
XYZxyz(6.2014, 3.0387, 24.2996)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33148A #6B8A14
analogous
#14308A #33148A #6E148A
triadic
#33148A #8A3314 #148A33
tetradic
#33148A #8A1430 #6B8A14 #148A6E
square
#33148A #8A1430 #6B8A14 #148A6E
split-complementary
#33148A #8A6E14 #308A14
monochromatic
#0B051F #1F0C55 #33148A #471CBF #6436E2

Accessibility & contrast

On white

13.06
#33148A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#33148A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33148A
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33148A#FFFFFF#000000##FFFFFF
##33148A1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#003951
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #33148a;
/* rgb */ color: rgb(51, 20, 138);
/* oklch */ color: oklch(33.3% 0.175 283.5);
Tailwind
colors: {
  custom: {
    50: '#7758ad',
    500: '#33148a',
    950: '#000000',
  },
}
SCSS
$custom: #33148a;
$custom-light: #7758ad;
$custom-dark: #000000;
JSON
{
  "hex": "#33148a",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 138
  },
  "hsl": {
    "h": 255.763,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3328,
    "c": 0.17469,
    "h": 283.5
  },
  "luminance": 0.03039
}

Semantic roles & 50–950 ramp

primary
#33148A
secondary
#9CBE3C
accent
#F136C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #33148A

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

Preview Lab → · Contrast checker → · Palette generator →

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