#335AA9#335AA9

#335AA9 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.2% C 0.134 H 262.7°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#335AA9
RGBrgb(51, 90, 169)
HSLhsl(220, 54%, 43%)
HSVhsv(220, 70%, 66%)
CMYKcmyk(69.8%, 46.7%, 0%, 33.7%)
CIE-LABlab(39.38, 13.39, -46.54)
CIE-LCHlch(39.38, 48.43, 286.05°)
OKLaboklab(48.19% -0.0171 -0.1333)
OKLCHoklch(48.19% 0.134 262.7)
XYZxyz(12.1803, 10.8795, 38.9865)
Luminance0.1088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AA9 #A98233
analogous
#3395A9 #335AA9 #4733A9
triadic
#335AA9 #A9335A #5AA933
tetradic
#335AA9 #A93395 #A98233 #33A947
square
#335AA9 #A93395 #A98233 #33A947
split-complementary
#335AA9 #A94733 #95A933
monochromatic
#17284B #25417A #335AA9 #4F78CA #7E9CD8

Accessibility & contrast

On white

6.61
#335AA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#335AA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AA9
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AA9#FFFFFF#000000##FFFFFF
##335AA91.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3263AC
Deuteranopia (green-blind)
#1958A7
Tritanopia (blue-blind)
#006C79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335aa9;
/* rgb */ color: rgb(51, 90, 169);
/* oklch */ color: oklch(48.2% 0.134 262.7);
Tailwind
colors: {
  custom: {
    50: '#7988c3',
    500: '#335aa9',
    950: '#000000',
  },
}
SCSS
$custom: #335aa9;
$custom-light: #7988c3;
$custom-dark: #000000;
JSON
{
  "hex": "#335aa9",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 169
  },
  "hsl": {
    "h": 220.169,
    "s": 53.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48185,
    "c": 0.13438,
    "h": 262.7
  },
  "luminance": 0.10881
}

Semantic roles & 50–950 ramp

primary
#335AA9
secondary
#C1A977
accent
#AD4BDD
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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