#333C9E#333C9E

#333C9E is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.2% C 0.157 H 273.3°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#333C9E
RGBrgb(51, 60, 158)
HSLhsl(235, 51%, 41%)
HSVhsv(235, 68%, 62%)
CMYKcmyk(67.7%, 62%, 0%, 38%)
CIE-LABlab(30.41, 29.13, -54.46)
CIE-LCHlch(30.41, 61.76, 298.14°)
OKLaboklab(41.17% 0.009 -0.157)
OKLCHoklch(41.17% 0.157 273.3)
XYZxyz(9.1506, 6.4033, 33.0949)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333C9E #9E9533
analogous
#33719E #333C9E #5F339E
triadic
#333C9E #9E333C #3C9E33
tetradic
#333C9E #9E3371 #9E9533 #339E5F
square
#333C9E #9E3371 #9E9533 #339E5F
split-complementary
#333C9E #9E5F33 #719E33
monochromatic
#151941 #242A70 #333C9E #4A54C4 #7880D3

Accessibility & contrast

On white

9.21
#333C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#333C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333C9E
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333C9E#FFFFFF#000000##FFFFFF
##333C9E1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#005567
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #333c9e;
/* rgb */ color: rgb(51, 60, 158);
/* oklch */ color: oklch(41.2% 0.157 273.3);
Tailwind
colors: {
  custom: {
    50: '#7871bb',
    500: '#333c9e',
    950: '#000000',
  },
}
SCSS
$custom: #333c9e;
$custom-light: #7871bb;
$custom-dark: #000000;
JSON
{
  "hex": "#333c9e",
  "rgb": {
    "r": 51,
    "g": 60,
    "b": 158
  },
  "hsl": {
    "h": 234.953,
    "s": 51.196,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41169,
    "c": 0.15724,
    "h": 273.3
  },
  "luminance": 0.06404
}

Semantic roles & 50–950 ramp

primary
#333C9E
secondary
#BCB671
accent
#CF4DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #333C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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