#333591#333591

#333591 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.7% C 0.148 H 276.0°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#333591
RGBrgb(51, 53, 145)
HSLhsl(239, 48%, 38%)
HSVhsv(239, 65%, 57%)
CMYKcmyk(64.8%, 63.4%, 0%, 43.1%)
CIE-LABlab(27.56, 29.05, -51.17)
CIE-LCHlch(27.56, 58.84, 299.59°)
OKLaboklab(38.73% 0.0156 -0.1474)
OKLCHoklch(38.73% 0.148 276)
XYZxyz(7.7475, 5.2937, 27.3961)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333591 #918F33
analogous
#336491 #333591 #603391
triadic
#333591 #913335 #359133
tetradic
#333591 #913364 #918F33 #339160
square
#333591 #913364 #918F33 #339160
split-complementary
#333591 #916033 #649133
monochromatic
#131436 #232464 #333591 #4447BD #7173CD

Accessibility & contrast

On white

10.20
#333591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#333591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333591
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333591#FFFFFF#000000##FFFFFF
##3335911.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#003D8F
Tritanopia (blue-blind)
#004C5E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #333591;
/* rgb */ color: rgb(51, 53, 145);
/* oklch */ color: oklch(38.7% 0.148 276.0);
Tailwind
colors: {
  custom: {
    50: '#766cb2',
    500: '#333591',
    950: '#000000',
  },
}
SCSS
$custom: #333591;
$custom-light: #766cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#333591",
  "rgb": {
    "r": 51,
    "g": 53,
    "b": 145
  },
  "hsl": {
    "h": 238.723,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.3873,
    "c": 0.14819,
    "h": 276
  },
  "luminance": 0.05294
}

Semantic roles & 50–950 ramp

primary
#333591
secondary
#B5B46B
accent
#D550D8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #333591

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

Preview Lab → · Contrast checker → · Palette generator →

#333591 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva