#333387#333387

#333387 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.137 H 277.5°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#333387
RGBrgb(51, 51, 135)
HSLhsl(240, 45%, 36%)
HSVhsv(240, 62%, 53%)
CMYKcmyk(62.2%, 62.2%, 0%, 47.1%)
CIE-LABlab(26.22, 26.82, -47.15)
CIE-LCHlch(26.22, 54.25, 299.63°)
OKLaboklab(37.48% 0.0179 -0.1356)
OKLCHoklch(37.48% 0.137 277.5)
XYZxyz(6.9208, 4.8202, 23.4827)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333387 #878733
analogous
#335D87 #333387 #5D3387
triadic
#333387 #873333 #338733
tetradic
#333387 #87335D #878733 #33875D
square
#333387 #87335D #878733 #33875D
split-complementary
#333387 #875D33 #5D8733
monochromatic
#11112E #22225B #333387 #4444B3 #6D6DC8

Accessibility & contrast

On white

10.69
#333387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #333387
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333387#FFFFFF#000000##FFFFFF
##3333871.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #333387;
/* rgb */ color: rgb(51, 51, 135);
/* oklch */ color: oklch(37.5% 0.137 277.5);
Tailwind
colors: {
  custom: {
    50: '#746bab',
    500: '#333387',
    950: '#000000',
  },
}
SCSS
$custom: #333387;
$custom-light: #746bab;
$custom-dark: #000000;
JSON
{
  "hex": "#333387",
  "rgb": {
    "r": 51,
    "g": 51,
    "b": 135
  },
  "hsl": {
    "h": 240,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37484,
    "c": 0.13677,
    "h": 277.5
  },
  "luminance": 0.04821
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #333387

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

Preview Lab → · Contrast checker → · Palette generator →

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