#33318F#33318F

#33318F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.8% C 0.151 H 277.3°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#33318F
RGBrgb(51, 49, 143)
HSLhsl(241, 49%, 38%)
HSVhsv(241, 66%, 56%)
CMYKcmyk(64.3%, 65.7%, 0%, 43.9%)
CIE-LABlab(26.40, 30.94, -51.82)
CIE-LCHlch(26.40, 60.35, 300.84°)
OKLaboklab(37.83% 0.0193 -0.1493)
OKLCHoklch(37.83% 0.151 277.3)
XYZxyz(7.4199, 4.8830, 26.5328)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33318F #8D8F31
analogous
#315E8F #33318F #62318F
triadic
#33318F #8F3331 #318F33
tetradic
#33318F #8F315E #8D8F31 #318F62
square
#33318F #8F315E #8D8F31 #318F62
split-complementary
#33318F #8F6231 #5E8F31
monochromatic
#121234 #232161 #33318F #4341BD #6F6DCD

Accessibility & contrast

On white

10.62
#33318F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#33318F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33318F
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33318F#FFFFFF#000000##FFFFFF
##33318F1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #33318f;
/* rgb */ color: rgb(51, 49, 143);
/* oklch */ color: oklch(37.8% 0.151 277.3);
Tailwind
colors: {
  custom: {
    50: '#7669b1',
    500: '#33318f',
    950: '#000000',
  },
}
SCSS
$custom: #33318f;
$custom-light: #7669b1;
$custom-dark: #000000;
JSON
{
  "hex": "#33318f",
  "rgb": {
    "r": 51,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 241.277,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37829,
    "c": 0.15055,
    "h": 277.3
  },
  "luminance": 0.04884
}

Semantic roles & 50–950 ramp

primary
#33318F
secondary
#B3B567
accent
#D94FD6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #33318F

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

Preview Lab → · Contrast checker → · Palette generator →

#33318F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva