#333388#333388

#333388 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.6% C 0.138 H 277.4°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#333388
RGBrgb(51, 51, 136)
HSLhsl(240, 45%, 37%)
HSVhsv(240, 63%, 53%)
CMYKcmyk(62.5%, 62.5%, 0%, 46.7%)
CIE-LABlab(26.30, 27.18, -47.64)
CIE-LCHlch(26.30, 54.85, 299.70°)
OKLaboklab(37.57% 0.0179 -0.137)
OKLCHoklch(37.57% 0.138 277.4)
XYZxyz(6.9916, 4.8485, 23.8552)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333388 #888833
analogous
#335E88 #333388 #5E3388
triadic
#333388 #883333 #338833
tetradic
#333388 #88335E #888833 #33885E
square
#333388 #88335E #888833 #33885E
split-complementary
#333388 #885E33 #5E8833
monochromatic
#12122F #22225B #333388 #4444B5 #6D6DC8

Accessibility & contrast

On white

10.66
#333388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#333388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333388
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333388#FFFFFF#000000##FFFFFF
##3333881.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428B
Deuteranopia (green-blind)
#003B86
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #333388;
/* rgb */ color: rgb(51, 51, 136);
/* oklch */ color: oklch(37.6% 0.138 277.4);
Tailwind
colors: {
  custom: {
    50: '#746bab',
    500: '#333388',
    950: '#000000',
  },
}
SCSS
$custom: #333388;
$custom-light: #746bab;
$custom-dark: #000000;
JSON
{
  "hex": "#333388",
  "rgb": {
    "r": 51,
    "g": 51,
    "b": 136
  },
  "hsl": {
    "h": 240,
    "s": 45.455,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3757,
    "c": 0.13819,
    "h": 277.4
  },
  "luminance": 0.04849
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #333388

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

Preview Lab → · Contrast checker → · Palette generator →

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