#333D8A#333D8A

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

Color values

HEX#333D8A
RGBrgb(51, 61, 138)
HSLhsl(233, 46%, 37%)
HSVhsv(233, 63%, 54%)
CMYKcmyk(63%, 55.8%, 0%, 45.9%)
CIE-LABlab(29.10, 21.21, -44.34)
CIE-LCHlch(29.10, 49.16, 295.57°)
OKLaboklab(39.7% 0.0079 -0.1272)
OKLCHoklch(39.7% 0.127 273.5)
XYZxyz(7.6199, 5.8757, 24.7724)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333D8A #8A8033
analogous
#33698A #333D8A #54338A
triadic
#333D8A #8A333D #3D8A33
tetradic
#333D8A #8A3369 #8A8033 #338A54
square
#333D8A #8A3369 #8A8033 #338A54
split-complementary
#333D8A #8A5433 #698A33
monochromatic
#121531 #22295D #333D8A #4451B7 #6E78C9

Accessibility & contrast

On white

9.65
#333D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #333D8A
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333D8A#FFFFFF#000000##FFFFFF
##333D8A1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07488D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #333d8a;
/* rgb */ color: rgb(51, 61, 138);
/* oklch */ color: oklch(39.7% 0.127 273.5);
Tailwind
colors: {
  custom: {
    50: '#7472ad',
    500: '#333d8a',
    950: '#000000',
  },
}
SCSS
$custom: #333d8a;
$custom-light: #7472ad;
$custom-dark: #000000;
JSON
{
  "hex": "#333d8a",
  "rgb": {
    "r": 51,
    "g": 61,
    "b": 138
  },
  "hsl": {
    "h": 233.103,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39698,
    "c": 0.12747,
    "h": 273.5
  },
  "luminance": 0.05876
}

Semantic roles & 50–950 ramp

primary
#333D8A
secondary
#B1A967
accent
#C752D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #333D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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