#333AB1#333AB1

#333AB1 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.5% C 0.185 H 272.9°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#333AB1
RGBrgb(51, 58, 177)
HSLhsl(237, 55%, 45%)
HSVhsv(237, 71%, 69%)
CMYKcmyk(71.2%, 67.2%, 0%, 30.6%)
CIE-LABlab(31.59, 37.15, -63.95)
CIE-LCHlch(31.59, 73.96, 300.16°)
OKLaboklab(42.54% 0.0092 -0.1848)
OKLCHoklch(42.54% 0.185 272.9)
XYZxyz(10.8114, 6.9032, 42.3491)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333AB1 #B1AA33
analogous
#3379B1 #333AB1 #6B33B1
triadic
#333AB1 #B1333A #3AB133
tetradic
#333AB1 #B13379 #B1AA33 #33B16B
square
#333AB1 #B13379 #B1AA33 #33B16B
split-complementary
#333AB1 #B16B33 #79B133
monochromatic
#181B52 #252A81 #333AB1 #545ACE #8388DB

Accessibility & contrast

On white

8.82
#333AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#333AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333AB1
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333AB1#FFFFFF#000000##FFFFFF
##333AB11.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B5
Deuteranopia (green-blind)
#0044AF
Tritanopia (blue-blind)
#005A70
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #333ab1;
/* rgb */ color: rgb(51, 58, 177);
/* oklch */ color: oklch(42.5% 0.185 272.9);
Tailwind
colors: {
  custom: {
    50: '#7d70c9',
    500: '#333ab1',
    950: '#000000',
  },
}
SCSS
$custom: #333ab1;
$custom-light: #7d70c9;
$custom-dark: #000000;
JSON
{
  "hex": "#333ab1",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 177
  },
  "hsl": {
    "h": 236.667,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42544,
    "c": 0.18504,
    "h": 272.9
  },
  "luminance": 0.06904
}

Semantic roles & 50–950 ramp

primary
#333AB1
secondary
#C5C17B
accent
#D649DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #333AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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