#333EA2#333EA2

#333EA2 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.160 H 272.6°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#333EA2
RGBrgb(51, 62, 162)
HSLhsl(234, 52%, 42%)
HSVhsv(234, 69%, 64%)
CMYKcmyk(68.5%, 61.7%, 0%, 36.5%)
CIE-LABlab(31.25, 29.26, -55.51)
CIE-LCHlch(31.25, 62.75, 297.80°)
OKLaboklab(41.89% 0.0072 -0.16)
OKLCHoklch(41.89% 0.16 272.6)
XYZxyz(9.6073, 6.7568, 34.9733)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333EA2 #A29733
analogous
#3376A2 #333EA2 #6033A2
triadic
#333EA2 #A2333E #3EA233
tetradic
#333EA2 #A23376 #A29733 #33A260
square
#333EA2 #A23376 #A29733 #33A260
split-complementary
#333EA2 #A26033 #76A233
monochromatic
#161A45 #242C73 #333EA2 #4C58C7 #7A83D5

Accessibility & contrast

On white

8.93
#333EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#333EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333EA2
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333EA2#FFFFFF#000000##FFFFFF
##333EA21.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#00576A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #333ea2;
/* rgb */ color: rgb(51, 62, 162);
/* oklch */ color: oklch(41.9% 0.160 272.6);
Tailwind
colors: {
  custom: {
    50: '#7973be',
    500: '#333ea2',
    950: '#000000',
  },
}
SCSS
$custom: #333ea2;
$custom-light: #7973be;
$custom-dark: #000000;
JSON
{
  "hex": "#333ea2",
  "rgb": {
    "r": 51,
    "g": 62,
    "b": 162
  },
  "hsl": {
    "h": 234.054,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41892,
    "c": 0.16021,
    "h": 272.6
  },
  "luminance": 0.06758
}

Semantic roles & 50–950 ramp

primary
#333EA2
secondary
#BEB673
accent
#CD4CDC
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #333EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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