#33317E#33317E

#33317E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.127 H 279.2°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#33317E
RGBrgb(51, 49, 126)
HSLhsl(242, 44%, 34%)
HSVhsv(242, 61%, 49%)
CMYKcmyk(59.5%, 61.1%, 0%, 50.6%)
CIE-LABlab(24.97, 24.98, -43.53)
CIE-LCHlch(24.97, 50.19, 299.84°)
OKLaboklab(36.34% 0.0202 -0.125)
OKLCHoklch(36.34% 0.127 279.2)
XYZxyz(6.2283, 4.4064, 20.2569)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33317E #7C7E31
analogous
#31567E #33317E #5A317E
triadic
#33317E #7E3331 #317E33
tetradic
#33317E #7E3156 #7C7E31 #317E5A
square
#33317E #7E3156 #7C7E31 #317E5A
split-complementary
#33317E #7E5A31 #567E31
monochromatic
#0F0F26 #212052 #33317E #4542AA #6866C3

Accessibility & contrast

On white

11.16
#33317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#33317E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33317E
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33317E#FFFFFF#000000##FFFFFF
##33317E1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#064352
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #33317e;
/* rgb */ color: rgb(51, 49, 126);
/* oklch */ color: oklch(36.3% 0.127 279.2);
Tailwind
colors: {
  custom: {
    50: '#7369a4',
    500: '#33317e',
    950: '#000000',
  },
}
SCSS
$custom: #33317e;
$custom-light: #7369a4;
$custom-dark: #000000;
JSON
{
  "hex": "#33317e",
  "rgb": {
    "r": 51,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 241.558,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36336,
    "c": 0.1266,
    "h": 279.2
  },
  "luminance": 0.04407
}

Semantic roles & 50–950 ramp

primary
#33317E
secondary
#A9AB60
accent
#D454D0
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #33317E

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

Preview Lab → · Contrast checker → · Palette generator →

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