#335AA4#335AA4

#335AA4 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 47.8% C 0.127 H 261.9°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#335AA4
RGBrgb(51, 90, 164)
HSLhsl(219, 53%, 42%)
HSVhsv(219, 69%, 64%)
CMYKcmyk(68.9%, 45.1%, 0%, 35.7%)
CIE-LABlab(39.06, 11.53, -44.08)
CIE-LCHlch(39.06, 45.56, 284.66°)
OKLaboklab(47.84% -0.018 -0.126)
OKLCHoklch(47.84% 0.127 261.9)
XYZxyz(11.7199, 10.6953, 36.5615)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AA4 #A47D33
analogous
#3393A4 #335AA4 #4533A4
triadic
#335AA4 #A4335A #5AA433
tetradic
#335AA4 #A43393 #A47D33 #33A445
square
#335AA4 #A43393 #A47D33 #33A445
split-complementary
#335AA4 #A44533 #93A433
monochromatic
#162747 #244075 #335AA4 #4D77C8 #7B9BD6

Accessibility & contrast

On white

6.69
#335AA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#335AA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AA4
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AA4#FFFFFF#000000##FFFFFF
##335AA41.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3662A7
Deuteranopia (green-blind)
#2157A2
Tritanopia (blue-blind)
#006B77
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #335aa4;
/* rgb */ color: rgb(51, 90, 164);
/* oklch */ color: oklch(47.8% 0.127 261.9);
Tailwind
colors: {
  custom: {
    50: '#7888bf',
    500: '#335aa4',
    950: '#000000',
  },
}
SCSS
$custom: #335aa4;
$custom-light: #7888bf;
$custom-dark: #000000;
JSON
{
  "hex": "#335aa4",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 164
  },
  "hsl": {
    "h": 219.292,
    "s": 52.558,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47842,
    "c": 0.12731,
    "h": 261.9
  },
  "luminance": 0.10696
}

Semantic roles & 50–950 ramp

primary
#335AA4
secondary
#BFA574
accent
#AA4CDC
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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