#333C8E#333C8E

#333C8E is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.8% C 0.135 H 273.9°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#333C8E
RGBrgb(51, 60, 142)
HSLhsl(234, 47%, 38%)
HSVhsv(234, 64%, 56%)
CMYKcmyk(64.1%, 57.7%, 0%, 44.3%)
CIE-LABlab(29.13, 23.34, -46.76)
CIE-LCHlch(29.13, 52.26, 296.52°)
OKLaboklab(39.82% 0.0091 -0.1344)
OKLCHoklch(39.82% 0.135 273.9)
XYZxyz(7.8620, 5.8879, 26.3081)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333C8E #8E8533
analogous
#33698E #333C8E #57338E
triadic
#333C8E #8E333C #3C8E33
tetradic
#333C8E #8E3369 #8E8533 #338E57
square
#333C8E #8E3369 #8E8533 #338E57
split-complementary
#333C8E #8E5733 #698E33
monochromatic
#131634 #232961 #333C8E #434FBB #7079CC

Accessibility & contrast

On white

9.64
#333C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #333C8E
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333C8E#FFFFFF#000000##FFFFFF
##333C8E1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #333c8e;
/* rgb */ color: rgb(51, 60, 142);
/* oklch */ color: oklch(39.8% 0.135 273.9);
Tailwind
colors: {
  custom: {
    50: '#7571b0',
    500: '#333c8e',
    950: '#000000',
  },
}
SCSS
$custom: #333c8e;
$custom-light: #7571b0;
$custom-dark: #000000;
JSON
{
  "hex": "#333c8e",
  "rgb": {
    "r": 51,
    "g": 60,
    "b": 142
  },
  "hsl": {
    "h": 234.066,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39817,
    "c": 0.13466,
    "h": 273.9
  },
  "luminance": 0.05889
}

Semantic roles & 50–950 ramp

primary
#333C8E
secondary
#B4AC69
accent
#CA51D7
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #333C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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