#335AB9#335AB9

#335AB9 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.3% C 0.157 H 264.5°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#335AB9
RGBrgb(51, 90, 185)
HSLhsl(223, 57%, 46%)
HSVhsv(223, 72%, 73%)
CMYKcmyk(72.4%, 51.4%, 0%, 27.5%)
CIE-LABlab(40.44, 19.37, -54.26)
CIE-LCHlch(40.44, 57.61, 289.64°)
OKLaboklab(49.34% -0.0149 -0.156)
OKLCHoklch(49.34% 0.157 264.5)
XYZxyz(13.7753, 11.5175, 47.3866)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AB9 #B99233
analogous
#339DB9 #335AB9 #4F33B9
triadic
#335AB9 #B9335A #5AB933
tetradic
#335AB9 #B9339D #B99233 #33B94F
square
#335AB9 #B9339D #B99233 #33B94F
split-complementary
#335AB9 #B94F33 #9DB933
monochromatic
#192B59 #264389 #335AB9 #587BD1 #88A1DE

Accessibility & contrast

On white

6.36
#335AB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#335AB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AB9
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AB9#FFFFFF#000000##FFFFFF
##335AB91.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E66BC
Deuteranopia (green-blind)
#0059B7
Tritanopia (blue-blind)
#007181
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335ab9;
/* rgb */ color: rgb(51, 90, 185);
/* oklch */ color: oklch(49.3% 0.157 264.5);
Tailwind
colors: {
  custom: {
    50: '#7c88cf',
    500: '#335ab9',
    950: '#000000',
  },
}
SCSS
$custom: #335ab9;
$custom-light: #7c88cf;
$custom-dark: #000000;
JSON
{
  "hex": "#335ab9",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 185
  },
  "hsl": {
    "h": 222.537,
    "s": 56.78,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49337,
    "c": 0.15668,
    "h": 264.5
  },
  "luminance": 0.11519
}

Semantic roles & 50–950 ramp

primary
#335AB9
secondary
#C8B380
accent
#B448E0
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #335AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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