#333EA9#333EA9

#333EA9 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.5% C 0.170 H 272.4°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#333EA9
RGBrgb(51, 62, 169)
HSLhsl(234, 54%, 43%)
HSVhsv(234, 70%, 66%)
CMYKcmyk(69.8%, 63.3%, 0%, 33.7%)
CIE-LABlab(31.84, 31.78, -58.76)
CIE-LCHlch(31.84, 66.80, 298.41°)
OKLaboklab(42.51% 0.007 -0.1696)
OKLCHoklch(42.51% 0.17 272.4)
XYZxyz(10.2469, 7.0126, 38.3420)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333EA9 #A99E33
analogous
#3379A9 #333EA9 #6333A9
triadic
#333EA9 #A9333E #3EA933
tetradic
#333EA9 #A93379 #A99E33 #33A963
square
#333EA9 #A93379 #A99E33 #33A963
split-complementary
#333EA9 #A96333 #79A933
monochromatic
#171C4B #252D7A #333EA9 #4F5BCA #7E87D8

Accessibility & contrast

On white

8.74
#333EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#333EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333EA9
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333EA9#FFFFFF#000000##FFFFFF
##333EA91.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AC
Deuteranopia (green-blind)
#0046A7
Tritanopia (blue-blind)
#00596D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #333ea9;
/* rgb */ color: rgb(51, 62, 169);
/* oklch */ color: oklch(42.5% 0.170 272.4);
Tailwind
colors: {
  custom: {
    50: '#7a73c3',
    500: '#333ea9',
    950: '#000000',
  },
}
SCSS
$custom: #333ea9;
$custom-light: #7a73c3;
$custom-dark: #000000;
JSON
{
  "hex": "#333ea9",
  "rgb": {
    "r": 51,
    "g": 62,
    "b": 169
  },
  "hsl": {
    "h": 234.407,
    "s": 53.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42509,
    "c": 0.16972,
    "h": 272.4
  },
  "luminance": 0.07014
}

Semantic roles & 50–950 ramp

primary
#333EA9
secondary
#C1BA77
accent
#CF4BDD
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #333EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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