#333EA1#333EA1

#333EA1 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.8% C 0.159 H 272.6°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#333EA1
RGBrgb(51, 62, 161)
HSLhsl(234, 52%, 42%)
HSVhsv(234, 68%, 63%)
CMYKcmyk(68.3%, 61.5%, 0%, 36.9%)
CIE-LABlab(31.16, 28.90, -55.04)
CIE-LCHlch(31.16, 62.17, 297.70°)
OKLaboklab(41.81% 0.0073 -0.1587)
OKLCHoklch(41.81% 0.159 272.6)
XYZxyz(9.5187, 6.7214, 34.5070)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333EA1 #A19633
analogous
#3375A1 #333EA1 #5F33A1
triadic
#333EA1 #A1333E #3EA133
tetradic
#333EA1 #A13375 #A19633 #33A15F
square
#333EA1 #A13375 #A19633 #33A15F
split-complementary
#333EA1 #A15F33 #75A133
monochromatic
#161A44 #242C73 #333EA1 #4B57C6 #7A83D5

Accessibility & contrast

On white

8.96
#333EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#333EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333EA1
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333EA1#FFFFFF#000000##FFFFFF
##333EA11.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #333ea1;
/* rgb */ color: rgb(51, 62, 161);
/* oklch */ color: oklch(41.8% 0.159 272.6);
Tailwind
colors: {
  custom: {
    50: '#7973be',
    500: '#333ea1',
    950: '#000000',
  },
}
SCSS
$custom: #333ea1;
$custom-light: #7973be;
$custom-dark: #000000;
JSON
{
  "hex": "#333ea1",
  "rgb": {
    "r": 51,
    "g": 62,
    "b": 161
  },
  "hsl": {
    "h": 234,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41805,
    "c": 0.15884,
    "h": 272.6
  },
  "luminance": 0.06722
}

Semantic roles & 50–950 ramp

primary
#333EA1
secondary
#BDB672
accent
#CD4CDB
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #333EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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