#333AA8#333AA8

#333AA8 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.7% C 0.173 H 273.3°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#333AA8
RGBrgb(51, 58, 168)
HSLhsl(236, 53%, 43%)
HSVhsv(236, 70%, 66%)
CMYKcmyk(69.6%, 65.5%, 0%, 34.1%)
CIE-LABlab(30.77, 33.99, -59.89)
CIE-LCHlch(30.77, 68.86, 299.57°)
OKLaboklab(41.7% 0.01 -0.1729)
OKLCHoklch(41.7% 0.173 273.3)
XYZxyz(9.9438, 6.5561, 37.7796)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333AA8 #A8A133
analogous
#3375A8 #333AA8 #6633A8
triadic
#333AA8 #A8333A #3AA833
tetradic
#333AA8 #A83375 #A8A133 #33A866
square
#333AA8 #A83375 #A8A133 #33A866
split-complementary
#333AA8 #A86633 #75A833
monochromatic
#161A4A #252A79 #333AA8 #4F56C9 #7E83D8

Accessibility & contrast

On white

9.09
#333AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#333AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333AA8
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333AA8#FFFFFF#000000##FFFFFF
##333AA81.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAB
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #333aa8;
/* rgb */ color: rgb(51, 58, 168);
/* oklch */ color: oklch(41.7% 0.173 273.3);
Tailwind
colors: {
  custom: {
    50: '#7b70c3',
    500: '#333aa8',
    950: '#000000',
  },
}
SCSS
$custom: #333aa8;
$custom-light: #7b70c3;
$custom-dark: #000000;
JSON
{
  "hex": "#333aa8",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 168
  },
  "hsl": {
    "h": 236.41,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41704,
    "c": 0.17323,
    "h": 273.3
  },
  "luminance": 0.06557
}

Semantic roles & 50–950 ramp

primary
#333AA8
secondary
#C1BC76
accent
#D44BDD
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #333AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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