#333C91#333C91

#333C91 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.1% C 0.139 H 273.8°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#333C91
RGBrgb(51, 60, 145)
HSLhsl(234, 48%, 38%)
HSVhsv(234, 65%, 57%)
CMYKcmyk(64.8%, 58.6%, 0%, 43.1%)
CIE-LABlab(29.36, 24.43, -48.23)
CIE-LCHlch(29.36, 54.06, 296.86°)
OKLaboklab(40.06% 0.0091 -0.1387)
OKLCHoklch(40.06% 0.139 273.8)
XYZxyz(8.0902, 5.9792, 27.5103)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333C91 #918833
analogous
#336B91 #333C91 #593391
triadic
#333C91 #91333C #3C9133
tetradic
#333C91 #91336B #918833 #339159
square
#333C91 #91336B #918833 #339159
split-complementary
#333C91 #915933 #6B9133
monochromatic
#131736 #232964 #333C91 #4450BD #717ACD

Accessibility & contrast

On white

9.56
#333C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#333C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333C91
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333C91#FFFFFF#000000##FFFFFF
##333C911.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004994
Deuteranopia (green-blind)
#00418F
Tritanopia (blue-blind)
#005160
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #333c91;
/* rgb */ color: rgb(51, 60, 145);
/* oklch */ color: oklch(40.1% 0.139 273.8);
Tailwind
colors: {
  custom: {
    50: '#7571b2',
    500: '#333c91',
    950: '#000000',
  },
}
SCSS
$custom: #333c91;
$custom-light: #7571b2;
$custom-dark: #000000;
JSON
{
  "hex": "#333c91",
  "rgb": {
    "r": 51,
    "g": 60,
    "b": 145
  },
  "hsl": {
    "h": 234.255,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40064,
    "c": 0.13898,
    "h": 273.8
  },
  "luminance": 0.0598
}

Semantic roles & 50–950 ramp

primary
#333C91
secondary
#B5AE6B
accent
#CB50D8
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #333C91

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

Preview Lab → · Contrast checker → · Palette generator →

#333C91 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva