#333A8A#333A8A

#333A8A is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.1% C 0.132 H 274.8°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#333A8A
RGBrgb(51, 58, 138)
HSLhsl(235, 46%, 37%)
HSVhsv(235, 63%, 54%)
CMYKcmyk(63%, 58%, 0%, 45.9%)
CIE-LABlab(28.29, 23.23, -45.66)
CIE-LCHlch(28.29, 51.23, 296.97°)
OKLaboklab(39.09% 0.0109 -0.1311)
OKLCHoklch(39.09% 0.132 274.8)
XYZxyz(7.4642, 5.5643, 24.7205)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333A8A #8A8333
analogous
#33668A #333A8A #57338A
triadic
#333A8A #8A333A #3A8A33
tetradic
#333A8A #8A3366 #8A8333 #338A57
square
#333A8A #8A3366 #8A8333 #338A57
split-complementary
#333A8A #8A5733 #668A33
monochromatic
#121431 #22275D #333A8A #444DB7 #6E75C9

Accessibility & contrast

On white

9.94
#333A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#333A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333A8A
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333A8A#FFFFFF#000000##FFFFFF
##333A8A1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #333a8a;
/* rgb */ color: rgb(51, 58, 138);
/* oklch */ color: oklch(39.1% 0.132 274.8);
Tailwind
colors: {
  custom: {
    50: '#7470ad',
    500: '#333a8a',
    950: '#000000',
  },
}
SCSS
$custom: #333a8a;
$custom-light: #7470ad;
$custom-dark: #000000;
JSON
{
  "hex": "#333a8a",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 138
  },
  "hsl": {
    "h": 235.172,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39092,
    "c": 0.13159,
    "h": 274.8
  },
  "luminance": 0.05565
}

Semantic roles & 50–950 ramp

primary
#333A8A
secondary
#B1AB67
accent
#CB52D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #333A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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