#335AA5#335AA5

#335AA5 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 47.9% C 0.129 H 262.0°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#335AA5
RGBrgb(51, 90, 165)
HSLhsl(219, 53%, 42%)
HSVhsv(219, 69%, 65%)
CMYKcmyk(69.1%, 45.5%, 0%, 35.3%)
CIE-LABlab(39.12, 11.90, -44.57)
CIE-LCHlch(39.12, 46.13, 284.95°)
OKLaboklab(47.91% -0.0178 -0.1275)
OKLCHoklch(47.91% 0.129 262)
XYZxyz(11.8105, 10.7316, 37.0390)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AA5 #A57E33
analogous
#3393A5 #335AA5 #4533A5
triadic
#335AA5 #A5335A #5AA533
tetradic
#335AA5 #A53393 #A57E33 #33A545
square
#335AA5 #A53393 #A57E33 #33A545
split-complementary
#335AA5 #A54533 #93A533
monochromatic
#162748 #254076 #335AA5 #4D77C8 #7C9BD6

Accessibility & contrast

On white

6.67
#335AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #335AA5
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AA5#FFFFFF#000000##FFFFFF
##335AA51.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3562A8
Deuteranopia (green-blind)
#2057A3
Tritanopia (blue-blind)
#006B77
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #335aa5;
/* rgb */ color: rgb(51, 90, 165);
/* oklch */ color: oklch(47.9% 0.129 262.0);
Tailwind
colors: {
  custom: {
    50: '#7888c0',
    500: '#335aa5',
    950: '#000000',
  },
}
SCSS
$custom: #335aa5;
$custom-light: #7888c0;
$custom-dark: #000000;
JSON
{
  "hex": "#335aa5",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 165
  },
  "hsl": {
    "h": 219.474,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4791,
    "c": 0.12872,
    "h": 262
  },
  "luminance": 0.10733
}

Semantic roles & 50–950 ramp

primary
#335AA5
secondary
#BFA675
accent
#AB4CDC
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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