#333AB3#333AB3

#333AB3 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.7% C 0.188 H 272.8°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#333AB3
RGBrgb(51, 58, 179)
HSLhsl(237, 56%, 45%)
HSVhsv(237, 72%, 70%)
CMYKcmyk(71.5%, 67.6%, 0%, 29.8%)
CIE-LABlab(31.77, 37.85, -64.83)
CIE-LCHlch(31.77, 75.07, 300.28°)
OKLaboklab(42.73% 0.009 -0.1874)
OKLCHoklch(42.73% 0.188 272.8)
XYZxyz(11.0122, 6.9835, 43.4067)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333AB3 #B3AC33
analogous
#337AB3 #333AB3 #6C33B3
triadic
#333AB3 #B3333A #3AB333
tetradic
#333AB3 #B3337A #B3AC33 #33B36C
square
#333AB3 #B3337A #B3AC33 #33B36C
split-complementary
#333AB3 #B36C33 #7AB333
monochromatic
#181B54 #252B83 #333AB3 #555BCE #8489DC

Accessibility & contrast

On white

8.76
#333AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#333AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333AB3
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333AB3#FFFFFF#000000##FFFFFF
##333AB31.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B7
Deuteranopia (green-blind)
#0045B1
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #333ab3;
/* rgb */ color: rgb(51, 58, 179);
/* oklch */ color: oklch(42.7% 0.188 272.8);
Tailwind
colors: {
  custom: {
    50: '#7d70cb',
    500: '#333ab3',
    950: '#000000',
  },
}
SCSS
$custom: #333ab3;
$custom-light: #7d70cb;
$custom-dark: #000000;
JSON
{
  "hex": "#333ab3",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 179
  },
  "hsl": {
    "h": 236.719,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42733,
    "c": 0.18763,
    "h": 272.8
  },
  "luminance": 0.06985
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #333AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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