#333AB2#333AB2

#333AB2 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.6% C 0.186 H 272.8°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#333AB2
RGBrgb(51, 58, 178)
HSLhsl(237, 55%, 45%)
HSVhsv(237, 71%, 70%)
CMYKcmyk(71.3%, 67.4%, 0%, 30.2%)
CIE-LABlab(31.68, 37.50, -64.39)
CIE-LCHlch(31.68, 74.52, 300.22°)
OKLaboklab(42.64% 0.0091 -0.1861)
OKLCHoklch(42.64% 0.186 272.8)
XYZxyz(10.9115, 6.9432, 42.8760)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333AB2 #B2AB33
analogous
#3379B2 #333AB2 #6C33B2
triadic
#333AB2 #B2333A #3AB233
tetradic
#333AB2 #B23379 #B2AB33 #33B26C
square
#333AB2 #B23379 #B2AB33 #33B26C
split-complementary
#333AB2 #B26C33 #79B233
monochromatic
#181B53 #252A82 #333AB2 #545BCE #8489DC

Accessibility & contrast

On white

8.79
#333AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#333AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333AB2
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333AB2#FFFFFF#000000##FFFFFF
##333AB21.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #333ab2;
/* rgb */ color: rgb(51, 58, 178);
/* oklch */ color: oklch(42.6% 0.186 272.8);
Tailwind
colors: {
  custom: {
    50: '#7d70ca',
    500: '#333ab2',
    950: '#000000',
  },
}
SCSS
$custom: #333ab2;
$custom-light: #7d70ca;
$custom-dark: #000000;
JSON
{
  "hex": "#333ab2",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 178
  },
  "hsl": {
    "h": 236.693,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42639,
    "c": 0.18633,
    "h": 272.8
  },
  "luminance": 0.06944
}

Semantic roles & 50–950 ramp

primary
#333AB2
secondary
#C5C17C
accent
#D749DF
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #333AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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