#333AB4#333AB4

#333AB4 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.8% C 0.189 H 272.7°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#333AB4
RGBrgb(51, 58, 180)
HSLhsl(237, 56%, 45%)
HSVhsv(237, 72%, 71%)
CMYKcmyk(71.7%, 67.8%, 0%, 29.4%)
CIE-LABlab(31.86, 38.20, -65.28)
CIE-LCHlch(31.86, 75.63, 300.33°)
OKLaboklab(42.83% 0.0089 -0.1887)
OKLCHoklch(42.83% 0.189 272.7)
XYZxyz(11.1137, 7.0241, 43.9412)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333AB4 #B4AD33
analogous
#337BB4 #333AB4 #6C33B4
triadic
#333AB4 #B4333A #3AB433
tetradic
#333AB4 #B4337B #B4AD33 #33B46C
square
#333AB4 #B4337B #B4AD33 #33B46C
split-complementary
#333AB4 #B46C33 #7BB433
monochromatic
#181B55 #252B84 #333AB4 #555CCF #858ADC

Accessibility & contrast

On white

8.73
#333AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#333AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333AB4
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333AB4#FFFFFF#000000##FFFFFF
##333AB41.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#0045B2
Tritanopia (blue-blind)
#005B72
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #333ab4;
/* rgb */ color: rgb(51, 58, 180);
/* oklch */ color: oklch(42.8% 0.189 272.7);
Tailwind
colors: {
  custom: {
    50: '#7d70cc',
    500: '#333ab4',
    950: '#000000',
  },
}
SCSS
$custom: #333ab4;
$custom-light: #7d70cc;
$custom-dark: #000000;
JSON
{
  "hex": "#333ab4",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 180
  },
  "hsl": {
    "h": 236.744,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.42829,
    "c": 0.18891,
    "h": 272.7
  },
  "luminance": 0.07025
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #333AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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