#335AB5#335AB5

#335AB5 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.0% C 0.151 H 264.1°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#335AB5
RGBrgb(51, 90, 181)
HSLhsl(222, 56%, 45%)
HSVhsv(222, 72%, 71%)
CMYKcmyk(71.8%, 50.3%, 0%, 29%)
CIE-LABlab(40.17, 17.87, -52.35)
CIE-LCHlch(40.17, 55.32, 288.85°)
OKLaboklab(49.04% -0.0154 -0.1504)
OKLCHoklch(49.04% 0.151 264.1)
XYZxyz(13.3589, 11.3509, 45.1940)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AB5 #B58E33
analogous
#339BB5 #335AB5 #4D33B5
triadic
#335AB5 #B5335A #5AB533
tetradic
#335AB5 #B5339B #B58E33 #33B54D
square
#335AB5 #B5339B #B58E33 #33B54D
split-complementary
#335AB5 #B54D33 #9BB533
monochromatic
#182B56 #264285 #335AB5 #567ACF #86A0DD

Accessibility & contrast

On white

6.42
#335AB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#335AB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AB5
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AB5#FFFFFF#000000##FFFFFF
##335AB51.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2465B8
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335ab5;
/* rgb */ color: rgb(51, 90, 181);
/* oklch */ color: oklch(49.0% 0.151 264.1);
Tailwind
colors: {
  custom: {
    50: '#7b88cc',
    500: '#335ab5',
    950: '#000000',
  },
}
SCSS
$custom: #335ab5;
$custom-light: #7b88cc;
$custom-dark: #000000;
JSON
{
  "hex": "#335ab5",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 181
  },
  "hsl": {
    "h": 222,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49041,
    "c": 0.15116,
    "h": 264.1
  },
  "luminance": 0.11352
}

Semantic roles & 50–950 ramp

primary
#335AB5
secondary
#C6B17D
accent
#B248DF
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #335AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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