#33127E#33127E

#33127E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.7% C 0.162 H 286.6°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#33127E
RGBrgb(51, 18, 126)
HSLhsl(258, 75%, 28%)
HSVhsv(258, 86%, 49%)
CMYKcmyk(59.5%, 85.7%, 0%, 50.6%)
CIE-LABlab(18.55, 42.65, -54.05)
CIE-LCHlch(18.55, 68.85, 308.28°)
OKLaboklab(31.75% 0.0465 -0.1557)
OKLCHoklch(31.75% 0.162 286.6)
XYZxyz(5.3463, 2.6425, 19.9629)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33127E #5D7E12
analogous
#12277E #33127E #69127E
triadic
#33127E #7E3312 #127E33
tetradic
#33127E #7E1227 #5D7E12 #127E69
square
#33127E #7E1227 #5D7E12 #127E69
split-complementary
#33127E #7E6912 #277E12
monochromatic
#0B041B #1D0A48 #33127E #491AB4 #622AE1

Accessibility & contrast

On white

13.74
#33127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#33127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33127E
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33127E#FFFFFF#000000##FFFFFF
##33127E1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#0C344A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #33127e;
/* rgb */ color: rgb(51, 18, 126);
/* oklch */ color: oklch(31.7% 0.162 286.6);
Tailwind
colors: {
  custom: {
    50: '#7556a5',
    500: '#33127e',
    950: '#000000',
  },
}
SCSS
$custom: #33127e;
$custom-light: #7556a5;
$custom-dark: #000000;
JSON
{
  "hex": "#33127e",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 258.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31746,
    "c": 0.16245,
    "h": 286.6
  },
  "luminance": 0.02643
}

Semantic roles & 50–950 ramp

primary
#33127E
secondary
#8EB438
accent
#F236B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #33127E

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

Preview Lab → · Contrast checker → · Palette generator →

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