#333B86#333B86

#333B86 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.0% C 0.124 H 274.5°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#333B86
RGBrgb(51, 59, 134)
HSLhsl(234, 45%, 36%)
HSVhsv(234, 62%, 53%)
CMYKcmyk(61.9%, 56%, 0%, 47.5%)
CIE-LABlab(28.25, 21.11, -43.22)
CIE-LCHlch(28.25, 48.11, 296.03°)
OKLaboklab(38.97% 0.0098 -0.124)
OKLCHoklch(38.97% 0.124 274.5)
XYZxyz(7.2309, 5.5524, 23.2403)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333B86 #867E33
analogous
#336586 #333B86 #553386
triadic
#333B86 #86333B #3B8633
tetradic
#333B86 #863365 #867E33 #338655
square
#333B86 #863365 #867E33 #338655
split-complementary
#333B86 #865533 #658633
monochromatic
#11142D #22275A #333B86 #444FB2 #6C75C7

Accessibility & contrast

On white

9.95
#333B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #333B86
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333B86#FFFFFF#000000##FFFFFF
##333B861.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074689
Deuteranopia (green-blind)
#003F84
Tritanopia (blue-blind)
#004D5A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #333b86;
/* rgb */ color: rgb(51, 59, 134);
/* oklch */ color: oklch(39.0% 0.124 274.5);
Tailwind
colors: {
  custom: {
    50: '#7370aa',
    500: '#333b86',
    950: '#000000',
  },
}
SCSS
$custom: #333b86;
$custom-light: #7370aa;
$custom-dark: #000000;
JSON
{
  "hex": "#333b86",
  "rgb": {
    "r": 51,
    "g": 59,
    "b": 134
  },
  "hsl": {
    "h": 234.217,
    "s": 44.865,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38973,
    "c": 0.12435,
    "h": 274.5
  },
  "luminance": 0.05553
}

Semantic roles & 50–950 ramp

primary
#333B86
secondary
#AFA866
accent
#C853D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #333B86

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

Preview Lab → · Contrast checker → · Palette generator →

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