#333B8A#333B8A

#333B8A is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.3% C 0.130 H 274.4°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#333B8A
RGBrgb(51, 59, 138)
HSLhsl(234, 46%, 37%)
HSVhsv(234, 63%, 54%)
CMYKcmyk(63%, 57.2%, 0%, 45.9%)
CIE-LABlab(28.55, 22.56, -45.22)
CIE-LCHlch(28.55, 50.54, 296.51°)
OKLaboklab(39.29% 0.0099 -0.1298)
OKLCHoklch(39.29% 0.13 274.4)
XYZxyz(7.5151, 5.6661, 24.7375)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333B8A #8A8233
analogous
#33678A #333B8A #57338A
triadic
#333B8A #8A333B #3B8A33
tetradic
#333B8A #8A3367 #8A8233 #338A57
square
#333B8A #8A3367 #8A8233 #338A57
split-complementary
#333B8A #8A5733 #678A33
monochromatic
#121531 #22285D #333B8A #444EB7 #6E76C9

Accessibility & contrast

On white

9.84
#333B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#333B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333B8A
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333B8A#FFFFFF#000000##FFFFFF
##333B8A1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #333b8a;
/* rgb */ color: rgb(51, 59, 138);
/* oklch */ color: oklch(39.3% 0.130 274.4);
Tailwind
colors: {
  custom: {
    50: '#7470ad',
    500: '#333b8a',
    950: '#000000',
  },
}
SCSS
$custom: #333b8a;
$custom-light: #7470ad;
$custom-dark: #000000;
JSON
{
  "hex": "#333b8a",
  "rgb": {
    "r": 51,
    "g": 59,
    "b": 138
  },
  "hsl": {
    "h": 234.483,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39293,
    "c": 0.13022,
    "h": 274.4
  },
  "luminance": 0.05667
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #333B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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