#3334A6#3334A6

#3334A6 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.5% C 0.178 H 274.7°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#3334A6
RGBrgb(51, 52, 166)
HSLhsl(239, 53%, 43%)
HSVhsv(239, 69%, 65%)
CMYKcmyk(69.3%, 68.7%, 0%, 34.9%)
CIE-LABlab(29.19, 37.05, -61.29)
CIE-LCHlch(29.19, 71.61, 301.15°)
OKLaboklab(40.5% 0.0145 -0.177)
OKLCHoklch(40.5% 0.178 274.7)
XYZxyz(9.4739, 5.9121, 36.7109)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3334A6 #A6A533
analogous
#336EA6 #3334A6 #6B33A6
triadic
#3334A6 #A63334 #34A633
tetradic
#3334A6 #A6336E #A6A533 #33A66B
square
#3334A6 #A6336E #A6A533 #33A66B
split-complementary
#3334A6 #A66B33 #6EA633
monochromatic
#161748 #252577 #3334A6 #4E4FC9 #7C7DD7

Accessibility & contrast

On white

9.62
#3334A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#3334A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3334A6
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3334A6#FFFFFF#000000##FFFFFF
##3334A61.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#003FA4
Tritanopia (blue-blind)
#005368
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3334a6;
/* rgb */ color: rgb(51, 52, 166);
/* oklch */ color: oklch(40.5% 0.178 274.7);
Tailwind
colors: {
  custom: {
    50: '#7b6cc1',
    500: '#3334a6',
    950: '#000000',
  },
}
SCSS
$custom: #3334a6;
$custom-light: #7b6cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#3334a6",
  "rgb": {
    "r": 51,
    "g": 52,
    "b": 166
  },
  "hsl": {
    "h": 239.478,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40497,
    "c": 0.17763,
    "h": 274.7
  },
  "luminance": 0.05913
}

Semantic roles & 50–950 ramp

primary
#3334A6
secondary
#C0BF75
accent
#DB4BDC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #3334A6

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

Preview Lab → · Contrast checker → · Palette generator →

#3334A6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva