#335AAC#335AAC

#335AAC is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.4% C 0.139 H 263.1°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#335AAC
RGBrgb(51, 90, 172)
HSLhsl(221, 54%, 44%)
HSVhsv(221, 70%, 67%)
CMYKcmyk(70.3%, 47.7%, 0%, 32.5%)
CIE-LABlab(39.57, 14.51, -48.01)
CIE-LCHlch(39.57, 50.15, 286.82°)
OKLaboklab(48.4% -0.0167 -0.1376)
OKLCHoklch(48.4% 0.139 263.1)
XYZxyz(12.4652, 10.9934, 40.4867)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AAC #AC8533
analogous
#3396AC #335AAC #4833AC
triadic
#335AAC #AC335A #5AAC33
tetradic
#335AAC #AC3396 #AC8533 #33AC48
square
#335AAC #AC3396 #AC8533 #33AC48
split-complementary
#335AAC #AC4833 #96AC33
monochromatic
#17294E #25417D #335AAC #5178CB #809DD9

Accessibility & contrast

On white

6.56
#335AAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#335AAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AAC
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AAC#FFFFFF#000000##FFFFFF
##335AAC1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F63AF
Deuteranopia (green-blind)
#1258AA
Tritanopia (blue-blind)
#006D7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335aac;
/* rgb */ color: rgb(51, 90, 172);
/* oklch */ color: oklch(48.4% 0.139 263.1);
Tailwind
colors: {
  custom: {
    50: '#7988c5',
    500: '#335aac',
    950: '#000000',
  },
}
SCSS
$custom: #335aac;
$custom-light: #7988c5;
$custom-dark: #000000;
JSON
{
  "hex": "#335aac",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 172
  },
  "hsl": {
    "h": 220.661,
    "s": 54.26,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48395,
    "c": 0.1386,
    "h": 263.1
  },
  "luminance": 0.10995
}

Semantic roles & 50–950 ramp

primary
#335AAC
secondary
#C2AB78
accent
#AE4ADE
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #335AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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