#333C8F#333C8F

#333C8F is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.9% C 0.136 H 273.8°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#333C8F
RGBrgb(51, 60, 143)
HSLhsl(234, 47%, 38%)
HSVhsv(234, 64%, 56%)
CMYKcmyk(64.3%, 58%, 0%, 43.9%)
CIE-LABlab(29.20, 23.70, -47.25)
CIE-LCHlch(29.20, 52.86, 296.64°)
OKLaboklab(39.9% 0.0091 -0.1358)
OKLCHoklch(39.9% 0.136 273.8)
XYZxyz(7.9374, 5.9180, 26.7053)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333C8F #8F8633
analogous
#336A8F #333C8F #58338F
triadic
#333C8F #8F333C #3C8F33
tetradic
#333C8F #8F336A #8F8633 #338F58
square
#333C8F #8F336A #8F8633 #338F58
split-complementary
#333C8F #8F5833 #6A8F33
monochromatic
#131635 #232962 #333C8F #434FBC #7079CC

Accessibility & contrast

On white

9.62
#333C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#333C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333C8F
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333C8F#FFFFFF#000000##FFFFFF
##333C8F1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#00505F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #333c8f;
/* rgb */ color: rgb(51, 60, 143);
/* oklch */ color: oklch(39.9% 0.136 273.8);
Tailwind
colors: {
  custom: {
    50: '#7571b0',
    500: '#333c8f',
    950: '#000000',
  },
}
SCSS
$custom: #333c8f;
$custom-light: #7571b0;
$custom-dark: #000000;
JSON
{
  "hex": "#333c8f",
  "rgb": {
    "r": 51,
    "g": 60,
    "b": 143
  },
  "hsl": {
    "h": 234.13,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39899,
    "c": 0.1361,
    "h": 273.8
  },
  "luminance": 0.05919
}

Semantic roles & 50–950 ramp

primary
#333C8F
secondary
#B4AD6A
accent
#CA51D7
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #333C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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