#333EA4#333EA4

#333EA4 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.1% C 0.163 H 272.5°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#333EA4
RGBrgb(51, 62, 164)
HSLhsl(234, 53%, 42%)
HSVhsv(234, 69%, 64%)
CMYKcmyk(68.9%, 62.2%, 0%, 35.7%)
CIE-LABlab(31.41, 29.98, -56.44)
CIE-LCHlch(31.41, 63.91, 297.98°)
OKLaboklab(42.07% 0.0072 -0.1628)
OKLCHoklch(42.07% 0.163 272.5)
XYZxyz(9.7865, 6.8285, 35.9170)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333EA4 #A49933
analogous
#3377A4 #333EA4 #6033A4
triadic
#333EA4 #A4333E #3EA433
tetradic
#333EA4 #A43377 #A49933 #33A460
square
#333EA4 #A43377 #A49933 #33A460
split-complementary
#333EA4 #A46033 #77A433
monochromatic
#161B47 #242C75 #333EA4 #4D59C8 #7B84D6

Accessibility & contrast

On white

8.88
#333EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#333EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333EA4
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333EA4#FFFFFF#000000##FFFFFF
##333EA41.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #333ea4;
/* rgb */ color: rgb(51, 62, 164);
/* oklch */ color: oklch(42.1% 0.163 272.5);
Tailwind
colors: {
  custom: {
    50: '#7973c0',
    500: '#333ea4',
    950: '#000000',
  },
}
SCSS
$custom: #333ea4;
$custom-light: #7973c0;
$custom-dark: #000000;
JSON
{
  "hex": "#333ea4",
  "rgb": {
    "r": 51,
    "g": 62,
    "b": 164
  },
  "hsl": {
    "h": 234.159,
    "s": 52.558,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42067,
    "c": 0.16295,
    "h": 272.5
  },
  "luminance": 0.06829
}

Semantic roles & 50–950 ramp

primary
#333EA4
secondary
#BFB874
accent
#CE4CDC
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #333EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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