#333699#333699

#333699 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.6% C 0.158 H 275.2°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#333699
RGBrgb(51, 54, 153)
HSLhsl(238, 50%, 40%)
HSVhsv(238, 67%, 60%)
CMYKcmyk(66.7%, 64.7%, 0%, 40%)
CIE-LABlab(28.49, 31.24, -54.55)
CIE-LCHlch(28.49, 62.86, 299.80°)
OKLaboklab(39.63% 0.0142 -0.1573)
OKLCHoklch(39.63% 0.158 275.2)
XYZxyz(8.4323, 5.6413, 30.7753)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333699 #999633
analogous
#336999 #333699 #633399
triadic
#333699 #993336 #369933
tetradic
#333699 #993369 #999633 #339963
square
#333699 #993369 #999633 #339963
split-complementary
#333699 #996333 #699933
monochromatic
#14163D #24266B #333699 #474BC2 #7578D1

Accessibility & contrast

On white

9.87
#333699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#333699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333699
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333699#FFFFFF#000000##FFFFFF
##3336991.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #333699;
/* rgb */ color: rgb(51, 54, 153);
/* oklch */ color: oklch(39.6% 0.158 275.2);
Tailwind
colors: {
  custom: {
    50: '#786db8',
    500: '#333699',
    950: '#000000',
  },
}
SCSS
$custom: #333699;
$custom-light: #786db8;
$custom-dark: #000000;
JSON
{
  "hex": "#333699",
  "rgb": {
    "r": 51,
    "g": 54,
    "b": 153
  },
  "hsl": {
    "h": 238.235,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.39627,
    "c": 0.15793,
    "h": 275.2
  },
  "luminance": 0.05642
}

Semantic roles & 50–950 ramp

primary
#333699
secondary
#B9B76E
accent
#D54EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #333699

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

Preview Lab → · Contrast checker → · Palette generator →

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