#333EA8#333EA8

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

Color values

HEX#333EA8
RGBrgb(51, 62, 168)
HSLhsl(234, 53%, 43%)
HSVhsv(234, 70%, 66%)
CMYKcmyk(69.6%, 63.1%, 0%, 34.1%)
CIE-LABlab(31.75, 31.42, -58.30)
CIE-LCHlch(31.75, 66.23, 298.33°)
OKLaboklab(42.42% 0.007 -0.1682)
OKLCHoklch(42.42% 0.168 272.4)
XYZxyz(10.1534, 6.9752, 37.8495)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333EA8 #A89D33
analogous
#3378A8 #333EA8 #6233A8
triadic
#333EA8 #A8333E #3EA833
tetradic
#333EA8 #A83378 #A89D33 #33A862
square
#333EA8 #A83378 #A89D33 #33A862
split-complementary
#333EA8 #A86233 #78A833
monochromatic
#161B4A #252D79 #333EA8 #4F5AC9 #7E86D8

Accessibility & contrast

On white

8.77
#333EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #333EA8
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333EA8#FFFFFF#000000##FFFFFF
##333EA81.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AB
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#00596D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #333ea8;
/* rgb */ color: rgb(51, 62, 168);
/* oklch */ color: oklch(42.4% 0.168 272.4);
Tailwind
colors: {
  custom: {
    50: '#7a73c3',
    500: '#333ea8',
    950: '#000000',
  },
}
SCSS
$custom: #333ea8;
$custom-light: #7a73c3;
$custom-dark: #000000;
JSON
{
  "hex": "#333ea8",
  "rgb": {
    "r": 51,
    "g": 62,
    "b": 168
  },
  "hsl": {
    "h": 234.359,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4242,
    "c": 0.16838,
    "h": 272.4
  },
  "luminance": 0.06976
}

Semantic roles & 50–950 ramp

primary
#333EA8
secondary
#C1BA76
accent
#CF4BDD
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #333EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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