#335AA2#335AA2

#335AA2 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.7% C 0.124 H 261.5°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#335AA2
RGBrgb(51, 90, 162)
HSLhsl(219, 52%, 42%)
HSVhsv(219, 69%, 64%)
CMYKcmyk(68.5%, 44.4%, 0%, 36.5%)
CIE-LABlab(38.94, 10.78, -43.08)
CIE-LCHlch(38.94, 44.41, 284.05°)
OKLaboklab(47.71% -0.0184 -0.1231)
OKLCHoklch(47.71% 0.124 261.5)
XYZxyz(11.5407, 10.6236, 35.6178)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AA2 #A27B33
analogous
#3392A2 #335AA2 #4433A2
triadic
#335AA2 #A2335A #5AA233
tetradic
#335AA2 #A23392 #A27B33 #33A244
square
#335AA2 #A23392 #A27B33 #33A244
split-complementary
#335AA2 #A24433 #92A233
monochromatic
#162645 #244073 #335AA2 #4C77C7 #7A9AD5

Accessibility & contrast

On white

6.72
#335AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#335AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AA2
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AA2#FFFFFF#000000##FFFFFF
##335AA21.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A5
Deuteranopia (green-blind)
#2457A1
Tritanopia (blue-blind)
#006B76
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #335aa2;
/* rgb */ color: rgb(51, 90, 162);
/* oklch */ color: oklch(47.7% 0.124 261.5);
Tailwind
colors: {
  custom: {
    50: '#7788be',
    500: '#335aa2',
    950: '#000000',
  },
}
SCSS
$custom: #335aa2;
$custom-light: #7788be;
$custom-dark: #000000;
JSON
{
  "hex": "#335aa2",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 162
  },
  "hsl": {
    "h": 218.919,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47708,
    "c": 0.12447,
    "h": 261.5
  },
  "luminance": 0.10625
}

Semantic roles & 50–950 ramp

primary
#335AA2
secondary
#BEA473
accent
#A94CDC
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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