#333AA5#333AA5

#333AA5 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.4% C 0.169 H 273.5°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#333AA5
RGBrgb(51, 58, 165)
HSLhsl(236, 53%, 42%)
HSVhsv(236, 69%, 65%)
CMYKcmyk(69.1%, 64.8%, 0%, 35.3%)
CIE-LABlab(30.51, 32.92, -58.52)
CIE-LCHlch(30.51, 67.15, 299.36°)
OKLaboklab(41.43% 0.0102 -0.1689)
OKLCHoklch(41.43% 0.169 273.5)
XYZxyz(9.6676, 6.4456, 36.3247)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333AA5 #A59E33
analogous
#3373A5 #333AA5 #6533A5
triadic
#333AA5 #A5333A #3AA533
tetradic
#333AA5 #A53373 #A59E33 #33A565
square
#333AA5 #A53373 #A59E33 #33A565
split-complementary
#333AA5 #A56533 #73A533
monochromatic
#161948 #252A76 #333AA5 #4D55C8 #7C81D6

Accessibility & contrast

On white

9.17
#333AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#333AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333AA5
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333AA5#FFFFFF#000000##FFFFFF
##333AA51.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA8
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #333aa5;
/* rgb */ color: rgb(51, 58, 165);
/* oklch */ color: oklch(41.4% 0.169 273.5);
Tailwind
colors: {
  custom: {
    50: '#7a70c1',
    500: '#333aa5',
    950: '#000000',
  },
}
SCSS
$custom: #333aa5;
$custom-light: #7a70c1;
$custom-dark: #000000;
JSON
{
  "hex": "#333aa5",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 165
  },
  "hsl": {
    "h": 236.316,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41429,
    "c": 0.16923,
    "h": 273.5
  },
  "luminance": 0.06447
}

Semantic roles & 50–950 ramp

primary
#333AA5
secondary
#BFBB75
accent
#D34CDC
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #333AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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