#335AA6#335AA6

#335AA6 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.0% C 0.130 H 262.2°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#335AA6
RGBrgb(51, 90, 166)
HSLhsl(220, 53%, 43%)
HSVhsv(220, 69%, 65%)
CMYKcmyk(69.3%, 45.8%, 0%, 34.9%)
CIE-LABlab(39.19, 12.27, -45.07)
CIE-LCHlch(39.19, 46.71, 285.23°)
OKLaboklab(47.98% -0.0176 -0.1289)
OKLCHoklch(47.98% 0.13 262.2)
XYZxyz(11.9019, 10.7681, 37.5202)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AA6 #A67F33
analogous
#3393A6 #335AA6 #4533A6
triadic
#335AA6 #A6335A #5AA633
tetradic
#335AA6 #A63393 #A67F33 #33A645
square
#335AA6 #A63393 #A67F33 #33A645
split-complementary
#335AA6 #A64533 #93A633
monochromatic
#162748 #254177 #335AA6 #4E77C9 #7C9BD7

Accessibility & contrast

On white

6.66
#335AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#335AA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AA6
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AA6#FFFFFF#000000##FFFFFF
##335AA61.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3462A9
Deuteranopia (green-blind)
#1E57A4
Tritanopia (blue-blind)
#006C78
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #335aa6;
/* rgb */ color: rgb(51, 90, 166);
/* oklch */ color: oklch(48.0% 0.130 262.2);
Tailwind
colors: {
  custom: {
    50: '#7888c1',
    500: '#335aa6',
    950: '#000000',
  },
}
SCSS
$custom: #335aa6;
$custom-light: #7888c1;
$custom-dark: #000000;
JSON
{
  "hex": "#335aa6",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 166
  },
  "hsl": {
    "h": 219.652,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47979,
    "c": 0.13014,
    "h": 262.2
  },
  "luminance": 0.10769
}

Semantic roles & 50–950 ramp

primary
#335AA6
secondary
#C0A675
accent
#AB4BDC
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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