#333AB5#333AB5

#333AB5 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.9% C 0.190 H 272.7°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#333AB5
RGBrgb(51, 58, 181)
HSLhsl(237, 56%, 45%)
HSVhsv(237, 72%, 71%)
CMYKcmyk(71.8%, 68%, 0%, 29%)
CIE-LABlab(31.95, 38.55, -65.72)
CIE-LCHlch(31.95, 76.19, 300.39°)
OKLaboklab(42.92% 0.0088 -0.19)
OKLCHoklch(42.92% 0.19 272.7)
XYZxyz(11.2160, 7.0650, 44.4797)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333AB5 #B5AE33
analogous
#337BB5 #333AB5 #6D33B5
triadic
#333AB5 #B5333A #3AB533
tetradic
#333AB5 #B5337B #B5AE33 #33B56D
square
#333AB5 #B5337B #B5AE33 #33B56D
split-complementary
#333AB5 #B56D33 #7BB533
monochromatic
#181B56 #262B85 #333AB5 #565CCF #868ADD

Accessibility & contrast

On white

8.70
#333AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #333AB5
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333AB5#FFFFFF#000000##FFFFFF
##333AB51.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #333ab5;
/* rgb */ color: rgb(51, 58, 181);
/* oklch */ color: oklch(42.9% 0.190 272.7);
Tailwind
colors: {
  custom: {
    50: '#7d71cc',
    500: '#333ab5',
    950: '#000000',
  },
}
SCSS
$custom: #333ab5;
$custom-light: #7d71cc;
$custom-dark: #000000;
JSON
{
  "hex": "#333ab5",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 181
  },
  "hsl": {
    "h": 236.769,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.42924,
    "c": 0.19019,
    "h": 272.7
  },
  "luminance": 0.07066
}

Semantic roles & 50–950 ramp

primary
#333AB5
secondary
#C6C27D
accent
#D748DF
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #333AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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