#335AA7#335AA7

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

Color values

HEX#335AA7
RGBrgb(51, 90, 167)
HSLhsl(220, 53%, 43%)
HSVhsv(220, 69%, 65%)
CMYKcmyk(69.5%, 46.1%, 0%, 34.5%)
CIE-LABlab(39.25, 12.64, -45.56)
CIE-LCHlch(39.25, 47.28, 285.51°)
OKLaboklab(48.05% -0.0175 -0.1304)
OKLCHoklch(48.05% 0.132 262.4)
XYZxyz(11.9940, 10.8049, 38.0052)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AA7 #A78033
analogous
#3394A7 #335AA7 #4633A7
triadic
#335AA7 #A7335A #5AA733
tetradic
#335AA7 #A73394 #A78033 #33A746
square
#335AA7 #A73394 #A78033 #33A746
split-complementary
#335AA7 #A74633 #94A733
monochromatic
#162749 #254178 #335AA7 #4E77C9 #7D9BD7

Accessibility & contrast

On white

6.64
#335AA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#335AA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AA7
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AA7#FFFFFF#000000##FFFFFF
##335AA71.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3362AA
Deuteranopia (green-blind)
#1D57A5
Tritanopia (blue-blind)
#006C78
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #335aa7;
/* rgb */ color: rgb(51, 90, 167);
/* oklch */ color: oklch(48.0% 0.132 262.4);
Tailwind
colors: {
  custom: {
    50: '#7888c2',
    500: '#335aa7',
    950: '#000000',
  },
}
SCSS
$custom: #335aa7;
$custom-light: #7888c2;
$custom-dark: #000000;
JSON
{
  "hex": "#335aa7",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 167
  },
  "hsl": {
    "h": 219.828,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48047,
    "c": 0.13156,
    "h": 262.4
  },
  "luminance": 0.10806
}

Semantic roles & 50–950 ramp

primary
#335AA7
secondary
#C0A776
accent
#AC4BDD
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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