#33138E#33138E

#33138E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.6% C 0.180 H 282.8°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#33138E
RGBrgb(51, 19, 142)
HSLhsl(256, 76%, 32%)
HSVhsv(256, 87%, 56%)
CMYKcmyk(64.1%, 86.6%, 0%, 44.3%)
CIE-LABlab(20.53, 46.81, -60.86)
CIE-LCHlch(20.53, 76.78, 307.56°)
OKLaboklab(33.64% 0.0398 -0.1755)
OKLCHoklch(33.64% 0.18 282.8)
XYZxyz(6.4791, 3.1221, 25.8471)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33138E #6E8E13
analogous
#13308E #33138E #71138E
triadic
#33138E #8E3313 #138E33
tetradic
#33138E #8E1330 #6E8E13 #138E71
square
#33138E #8E1330 #6E8E13 #138E71
split-complementary
#33138E #8E7113 #308E13
monochromatic
#0C0522 #200C58 #33138E #461AC4 #6437E4

Accessibility & contrast

On white

12.93
#33138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#33138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33138E
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33138E#FFFFFF#000000##FFFFFF
##33138E1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #33138e;
/* rgb */ color: rgb(51, 19, 142);
/* oklch */ color: oklch(33.6% 0.180 282.8);
Tailwind
colors: {
  custom: {
    50: '#7858b0',
    500: '#33138e',
    950: '#000000',
  },
}
SCSS
$custom: #33138e;
$custom-light: #7858b0;
$custom-dark: #000000;
JSON
{
  "hex": "#33138e",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 255.61,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33641,
    "c": 0.17999,
    "h": 282.8
  },
  "luminance": 0.03123
}

Semantic roles & 50–950 ramp

primary
#33138E
secondary
#9FC23B
accent
#F335C1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #33138E

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

Preview Lab → · Contrast checker → · Palette generator →

#33138E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva