#333AA4#333AA4

#333AA4 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.3% C 0.168 H 273.5°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#333AA4
RGBrgb(51, 58, 164)
HSLhsl(236, 53%, 42%)
HSVhsv(236, 69%, 64%)
CMYKcmyk(68.9%, 64.6%, 0%, 35.7%)
CIE-LABlab(30.42, 32.57, -58.06)
CIE-LCHlch(30.42, 66.57, 299.29°)
OKLaboklab(41.34% 0.0103 -0.1676)
OKLCHoklch(41.34% 0.168 273.5)
XYZxyz(9.5769, 6.4094, 35.8472)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333AA4 #A49D33
analogous
#3373A4 #333AA4 #6433A4
triadic
#333AA4 #A4333A #3AA433
tetradic
#333AA4 #A43373 #A49D33 #33A464
square
#333AA4 #A43373 #A49D33 #33A464
split-complementary
#333AA4 #A46433 #73A433
monochromatic
#161947 #242975 #333AA4 #4D54C8 #7B81D6

Accessibility & contrast

On white

9.20
#333AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#333AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333AA4
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333AA4#FFFFFF#000000##FFFFFF
##333AA41.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA7
Deuteranopia (green-blind)
#0043A2
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #333aa4;
/* rgb */ color: rgb(51, 58, 164);
/* oklch */ color: oklch(41.3% 0.168 273.5);
Tailwind
colors: {
  custom: {
    50: '#7a70c0',
    500: '#333aa4',
    950: '#000000',
  },
}
SCSS
$custom: #333aa4;
$custom-light: #7a70c0;
$custom-dark: #000000;
JSON
{
  "hex": "#333aa4",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 164
  },
  "hsl": {
    "h": 236.283,
    "s": 52.558,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41339,
    "c": 0.16789,
    "h": 273.5
  },
  "luminance": 0.0641
}

Semantic roles & 50–950 ramp

primary
#333AA4
secondary
#BFBA74
accent
#D34CDC
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #333AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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