#333386#333386

#333386 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.4% C 0.135 H 277.6°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#333386
RGBrgb(51, 51, 134)
HSLhsl(240, 45%, 36%)
HSVhsv(240, 62%, 53%)
CMYKcmyk(61.9%, 61.9%, 0%, 47.5%)
CIE-LABlab(26.13, 26.47, -46.66)
CIE-LCHlch(26.13, 53.65, 299.57°)
OKLaboklab(37.4% 0.018 -0.1341)
OKLCHoklch(37.4% 0.135 277.6)
XYZxyz(6.8508, 4.7922, 23.1136)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333386 #868633
analogous
#335D86 #333386 #5D3386
triadic
#333386 #863333 #338633
tetradic
#333386 #86335D #868633 #33865D
square
#333386 #86335D #868633 #33865D
split-complementary
#333386 #865D33 #5D8633
monochromatic
#11112D #22225A #333386 #4444B2 #6C6CC7

Accessibility & contrast

On white

10.72
#333386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#333386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333386
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333386#FFFFFF#000000##FFFFFF
##3333861.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004189
Deuteranopia (green-blind)
#003A84
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #333386;
/* rgb */ color: rgb(51, 51, 134);
/* oklch */ color: oklch(37.4% 0.135 277.6);
Tailwind
colors: {
  custom: {
    50: '#746baa',
    500: '#333386',
    950: '#000000',
  },
}
SCSS
$custom: #333386;
$custom-light: #746baa;
$custom-dark: #000000;
JSON
{
  "hex": "#333386",
  "rgb": {
    "r": 51,
    "g": 51,
    "b": 134
  },
  "hsl": {
    "h": 240,
    "s": 44.865,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37398,
    "c": 0.13535,
    "h": 277.6
  },
  "luminance": 0.04793
}

Semantic roles & 50–950 ramp

primary
#333386
secondary
#AFAF66
accent
#D553D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #333386

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

Preview Lab → · Contrast checker → · Palette generator →

#333386 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva