#333988#333988

#333988 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.7% C 0.130 H 275.3°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#333988
RGBrgb(51, 57, 136)
HSLhsl(236, 45%, 37%)
HSVhsv(236, 63%, 53%)
CMYKcmyk(62.5%, 58.1%, 0%, 46.7%)
CIE-LABlab(27.86, 23.18, -45.10)
CIE-LCHlch(27.86, 50.71, 297.20°)
OKLaboklab(38.73% 0.0119 -0.1295)
OKLCHoklch(38.73% 0.13 275.3)
XYZxyz(7.2709, 5.4071, 23.9483)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333988 #888233
analogous
#336488 #333988 #583388
triadic
#333988 #883339 #398833
tetradic
#333988 #883364 #888233 #338858
square
#333988 #883364 #888233 #338858
split-complementary
#333988 #885833 #648833
monochromatic
#12142F #22265B #333988 #444CB5 #6D74C8

Accessibility & contrast

On white

10.09
#333988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#333988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333988
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333988#FFFFFF#000000##FFFFFF
##3339881.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468B
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #333988;
/* rgb */ color: rgb(51, 57, 136);
/* oklch */ color: oklch(38.7% 0.130 275.3);
Tailwind
colors: {
  custom: {
    50: '#746fab',
    500: '#333988',
    950: '#000000',
  },
}
SCSS
$custom: #333988;
$custom-light: #746fab;
$custom-dark: #000000;
JSON
{
  "hex": "#333988",
  "rgb": {
    "r": 51,
    "g": 57,
    "b": 136
  },
  "hsl": {
    "h": 235.765,
    "s": 45.455,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3873,
    "c": 0.13005,
    "h": 275.3
  },
  "luminance": 0.05408
}

Semantic roles & 50–950 ramp

primary
#333988
secondary
#B0AB67
accent
#CC53D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #333988

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

Preview Lab → · Contrast checker → · Palette generator →

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