#333C87#333C87

#333C87 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.3% C 0.124 H 274.0°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#333C87
RGBrgb(51, 60, 135)
HSLhsl(234, 45%, 36%)
HSVhsv(234, 62%, 53%)
CMYKcmyk(62.2%, 55.6%, 0%, 47.1%)
CIE-LABlab(28.60, 20.80, -43.28)
CIE-LCHlch(28.60, 48.02, 295.67°)
OKLaboklab(39.26% 0.0088 -0.1241)
OKLCHoklch(39.26% 0.124 274)
XYZxyz(7.3528, 5.6842, 23.6267)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333C87 #877E33
analogous
#336687 #333C87 #543387
triadic
#333C87 #87333C #3C8733
tetradic
#333C87 #873366 #877E33 #338754
square
#333C87 #873366 #877E33 #338754
split-complementary
#333C87 #875433 #668733
monochromatic
#11152E #22285B #333C87 #4450B3 #6D76C8

Accessibility & contrast

On white

9.83
#333C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#333C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333C87
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333C87#FFFFFF#000000##FFFFFF
##333C871.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A478A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#004E5B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #333c87;
/* rgb */ color: rgb(51, 60, 135);
/* oklch */ color: oklch(39.3% 0.124 274.0);
Tailwind
colors: {
  custom: {
    50: '#7371aa',
    500: '#333c87',
    950: '#000000',
  },
}
SCSS
$custom: #333c87;
$custom-light: #7371aa;
$custom-dark: #000000;
JSON
{
  "hex": "#333c87",
  "rgb": {
    "r": 51,
    "g": 60,
    "b": 135
  },
  "hsl": {
    "h": 233.571,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39257,
    "c": 0.12444,
    "h": 274
  },
  "luminance": 0.05685
}

Semantic roles & 50–950 ramp

primary
#333C87
secondary
#B0A866
accent
#C753D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #333C87

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

Preview Lab → · Contrast checker → · Palette generator →

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