#333AA6#333AA6

#333AA6 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.5% C 0.171 H 273.4°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#333AA6
RGBrgb(51, 58, 166)
HSLhsl(236, 53%, 43%)
HSVhsv(236, 69%, 65%)
CMYKcmyk(69.3%, 65.1%, 0%, 34.9%)
CIE-LABlab(30.60, 33.28, -58.98)
CIE-LCHlch(30.60, 67.72, 299.43°)
OKLaboklab(41.52% 0.0102 -0.1703)
OKLCHoklch(41.52% 0.171 273.4)
XYZxyz(9.7589, 6.4822, 36.8059)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333AA6 #A69F33
analogous
#3373A6 #333AA6 #6633A6
triadic
#333AA6 #A6333A #3AA633
tetradic
#333AA6 #A63373 #A69F33 #33A666
square
#333AA6 #A63373 #A69F33 #33A666
split-complementary
#333AA6 #A66633 #73A633
monochromatic
#161948 #252A77 #333AA6 #4E55C9 #7C82D7

Accessibility & contrast

On white

9.14
#333AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#333AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333AA6
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333AA6#FFFFFF#000000##FFFFFF
##333AA61.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #333aa6;
/* rgb */ color: rgb(51, 58, 166);
/* oklch */ color: oklch(41.5% 0.171 273.4);
Tailwind
colors: {
  custom: {
    50: '#7a70c1',
    500: '#333aa6',
    950: '#000000',
  },
}
SCSS
$custom: #333aa6;
$custom-light: #7a70c1;
$custom-dark: #000000;
JSON
{
  "hex": "#333aa6",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 166
  },
  "hsl": {
    "h": 236.348,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41521,
    "c": 0.17056,
    "h": 273.4
  },
  "luminance": 0.06483
}

Semantic roles & 50–950 ramp

primary
#333AA6
secondary
#C0BB75
accent
#D44BDC
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #333AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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