#333A91#333A91

#333A91 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.7% C 0.142 H 274.5°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#333A91
RGBrgb(51, 58, 145)
HSLhsl(236, 48%, 38%)
HSVhsv(236, 65%, 57%)
CMYKcmyk(64.8%, 60%, 0%, 43.1%)
CIE-LABlab(28.83, 25.76, -49.09)
CIE-LCHlch(28.83, 55.43, 297.69°)
OKLaboklab(39.67% 0.011 -0.1412)
OKLCHoklch(39.67% 0.142 274.5)
XYZxyz(7.9874, 5.7736, 27.4761)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333A91 #918A33
analogous
#336991 #333A91 #5B3391
triadic
#333A91 #91333A #3A9133
tetradic
#333A91 #913369 #918A33 #33915B
square
#333A91 #913369 #918A33 #33915B
split-complementary
#333A91 #915B33 #699133
monochromatic
#131636 #232864 #333A91 #444DBD #7178CD

Accessibility & contrast

On white

9.75
#333A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#333A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333A91
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333A91#FFFFFF#000000##FFFFFF
##333A911.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004894
Deuteranopia (green-blind)
#00408F
Tritanopia (blue-blind)
#004F5F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #333a91;
/* rgb */ color: rgb(51, 58, 145);
/* oklch */ color: oklch(39.7% 0.142 274.5);
Tailwind
colors: {
  custom: {
    50: '#7670b2',
    500: '#333a91',
    950: '#000000',
  },
}
SCSS
$custom: #333a91;
$custom-light: #7670b2;
$custom-dark: #000000;
JSON
{
  "hex": "#333a91",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 145
  },
  "hsl": {
    "h": 235.532,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39673,
    "c": 0.14164,
    "h": 274.5
  },
  "luminance": 0.05774
}

Semantic roles & 50–950 ramp

primary
#333A91
secondary
#B5B06B
accent
#CD50D8
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #333A91

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

Preview Lab → · Contrast checker → · Palette generator →

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