#333B8D#333B8D

#333B8D is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.5% C 0.135 H 274.3°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#333B8D
RGBrgb(51, 59, 141)
HSLhsl(235, 47%, 38%)
HSVhsv(235, 64%, 55%)
CMYKcmyk(63.8%, 58.2%, 0%, 44.7%)
CIE-LABlab(28.78, 23.65, -46.70)
CIE-LCHlch(28.78, 52.35, 296.85°)
OKLaboklab(39.54% 0.01 -0.1342)
OKLCHoklch(39.54% 0.135 274.3)
XYZxyz(7.7353, 5.7542, 25.8972)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333B8D #8D8533
analogous
#33688D #333B8D #58338D
triadic
#333B8D #8D333B #3B8D33
tetradic
#333B8D #8D3368 #8D8533 #338D58
square
#333B8D #8D3368 #8D8533 #338D58
split-complementary
#333B8D #8D5833 #688D33
monochromatic
#121533 #232860 #333B8D #434EBA #6F78CB

Accessibility & contrast

On white

9.76
#333B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#333B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333B8D
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333B8D#FFFFFF#000000##FFFFFF
##333B8D1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #333b8d;
/* rgb */ color: rgb(51, 59, 141);
/* oklch */ color: oklch(39.5% 0.135 274.3);
Tailwind
colors: {
  custom: {
    50: '#7570af',
    500: '#333b8d',
    950: '#000000',
  },
}
SCSS
$custom: #333b8d;
$custom-light: #7570af;
$custom-dark: #000000;
JSON
{
  "hex": "#333b8d",
  "rgb": {
    "r": 51,
    "g": 59,
    "b": 141
  },
  "hsl": {
    "h": 234.667,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39537,
    "c": 0.13457,
    "h": 274.3
  },
  "luminance": 0.05755
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #333B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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