#33118E#33118E

#33118E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.181 H 283.0°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#33118E
RGBrgb(51, 17, 142)
HSLhsl(256, 79%, 31%)
HSVhsv(256, 88%, 56%)
CMYKcmyk(64.1%, 88%, 0%, 44.3%)
CIE-LABlab(20.27, 47.57, -61.28)
CIE-LCHlch(20.27, 77.58, 307.82°)
OKLaboklab(33.47% 0.0407 -0.1767)
OKLCHoklch(33.47% 0.181 283)
XYZxyz(6.4467, 3.0572, 25.8363)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33118E #6C8E11
analogous
#112D8E #33118E #71118E
triadic
#33118E #8E3311 #118E33
tetradic
#33118E #8E112D #6C8E11 #118E71
square
#33118E #8E112D #6C8E11 #118E71
split-complementary
#33118E #8E7111 #2D8E11
monochromatic
#0C0421 #1F0A57 #33118E #4718C5 #6433E7

Accessibility & contrast

On white

13.03
#33118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#33118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33118E
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33118E#FFFFFF#000000##FFFFFF
##33118E1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #33118e;
/* rgb */ color: rgb(51, 17, 142);
/* oklch */ color: oklch(33.5% 0.181 283.0);
Tailwind
colors: {
  custom: {
    50: '#7857b0',
    500: '#33118e',
    950: '#000000',
  },
}
SCSS
$custom: #33118e;
$custom-light: #7857b0;
$custom-dark: #000000;
JSON
{
  "hex": "#33118e",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 256.32,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33467,
    "c": 0.18134,
    "h": 283
  },
  "luminance": 0.03058
}

Semantic roles & 50–950 ramp

primary
#33118E
secondary
#9DC238
accent
#F533C0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #33118E

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

Preview Lab → · Contrast checker → · Palette generator →

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