#333C88#333C88

#333C88 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.3% C 0.126 H 274.0°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#333C88
RGBrgb(51, 60, 136)
HSLhsl(234, 45%, 37%)
HSVhsv(234, 63%, 53%)
CMYKcmyk(62.5%, 55.9%, 0%, 46.7%)
CIE-LABlab(28.68, 21.16, -43.79)
CIE-LCHlch(28.68, 48.63, 295.80°)
OKLaboklab(39.34% 0.0088 -0.1256)
OKLCHoklch(39.34% 0.126 274)
XYZxyz(7.4236, 5.7125, 23.9992)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333C88 #887F33
analogous
#336788 #333C88 #553388
triadic
#333C88 #88333C #3C8833
tetradic
#333C88 #883367 #887F33 #338855
square
#333C88 #883367 #887F33 #338855
split-complementary
#333C88 #885533 #678833
monochromatic
#12152F #22285B #333C88 #4450B5 #6D77C8

Accessibility & contrast

On white

9.80
#333C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#333C88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333C88
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333C88#FFFFFF#000000##FFFFFF
##333C881.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07478B
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #333c88;
/* rgb */ color: rgb(51, 60, 136);
/* oklch */ color: oklch(39.3% 0.126 274.0);
Tailwind
colors: {
  custom: {
    50: '#7471ab',
    500: '#333c88',
    950: '#000000',
  },
}
SCSS
$custom: #333c88;
$custom-light: #7471ab;
$custom-dark: #000000;
JSON
{
  "hex": "#333c88",
  "rgb": {
    "r": 51,
    "g": 60,
    "b": 136
  },
  "hsl": {
    "h": 233.647,
    "s": 45.455,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39336,
    "c": 0.12591,
    "h": 274
  },
  "luminance": 0.05713
}

Semantic roles & 50–950 ramp

primary
#333C88
secondary
#B0A867
accent
#C753D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #333C88

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

Preview Lab → · Contrast checker → · Palette generator →

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