#333C8D#333C8D

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

Color values

HEX#333C8D
RGBrgb(51, 60, 141)
HSLhsl(234, 47%, 38%)
HSVhsv(234, 64%, 55%)
CMYKcmyk(63.8%, 57.4%, 0%, 44.7%)
CIE-LABlab(29.05, 22.98, -46.27)
CIE-LCHlch(29.05, 51.66, 296.41°)
OKLaboklab(39.74% 0.009 -0.1329)
OKLCHoklch(39.74% 0.133 273.9)
XYZxyz(7.7872, 5.8580, 25.9145)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333C8D #8D8433
analogous
#33698D #333C8D #57338D
triadic
#333C8D #8D333C #3C8D33
tetradic
#333C8D #8D3369 #8D8433 #338D57
square
#333C8D #8D3369 #8D8433 #338D57
split-complementary
#333C8D #8D5733 #698D33
monochromatic
#121633 #232960 #333C8D #434FBA #6F79CB

Accessibility & contrast

On white

9.67
#333C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#333C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333C8D
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333C8D#FFFFFF#000000##FFFFFF
##333C8D1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #333c8d;
/* rgb */ color: rgb(51, 60, 141);
/* oklch */ color: oklch(39.7% 0.133 273.9);
Tailwind
colors: {
  custom: {
    50: '#7571af',
    500: '#333c8d',
    950: '#000000',
  },
}
SCSS
$custom: #333c8d;
$custom-light: #7571af;
$custom-dark: #000000;
JSON
{
  "hex": "#333c8d",
  "rgb": {
    "r": 51,
    "g": 60,
    "b": 141
  },
  "hsl": {
    "h": 234,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39736,
    "c": 0.13322,
    "h": 273.9
  },
  "luminance": 0.05859
}

Semantic roles & 50–950 ramp

primary
#333C8D
secondary
#B3AC69
accent
#C951D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #333C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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