#333D8D#333D8D

#333D8D is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.9% C 0.132 H 273.5°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#333D8D
RGBrgb(51, 61, 141)
HSLhsl(233, 47%, 38%)
HSVhsv(233, 64%, 55%)
CMYKcmyk(63.8%, 56.7%, 0%, 44.7%)
CIE-LABlab(29.32, 22.30, -45.83)
CIE-LCHlch(29.32, 50.97, 295.95°)
OKLaboklab(39.94% 0.008 -0.1316)
OKLCHoklch(39.94% 0.132 273.5)
XYZxyz(7.8401, 5.9637, 25.9321)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333D8D #8D8333
analogous
#336A8D #333D8D #56338D
triadic
#333D8D #8D333D #3D8D33
tetradic
#333D8D #8D336A #8D8333 #338D56
square
#333D8D #8D336A #8D8333 #338D56
split-complementary
#333D8D #8D5633 #6A8D33
monochromatic
#121633 #232A60 #333D8D #4350BA #6F7ACB

Accessibility & contrast

On white

9.58
#333D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#333D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333D8D
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333D8D#FFFFFF#000000##FFFFFF
##333D8D1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #333d8d;
/* rgb */ color: rgb(51, 61, 141);
/* oklch */ color: oklch(39.9% 0.132 273.5);
Tailwind
colors: {
  custom: {
    50: '#7572af',
    500: '#333d8d',
    950: '#000000',
  },
}
SCSS
$custom: #333d8d;
$custom-light: #7572af;
$custom-dark: #000000;
JSON
{
  "hex": "#333d8d",
  "rgb": {
    "r": 51,
    "g": 61,
    "b": 141
  },
  "hsl": {
    "h": 233.333,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39938,
    "c": 0.13186,
    "h": 273.5
  },
  "luminance": 0.05964
}

Semantic roles & 50–950 ramp

primary
#333D8D
secondary
#B3AB69
accent
#C851D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #333D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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