#335AB4#335AB4

#335AB4 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.0% C 0.150 H 264.0°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#335AB4
RGBrgb(51, 90, 180)
HSLhsl(222, 56%, 45%)
HSVhsv(222, 72%, 71%)
CMYKcmyk(71.7%, 50%, 0%, 29.4%)
CIE-LABlab(40.10, 17.50, -51.87)
CIE-LCHlch(40.10, 54.75, 288.64°)
OKLaboklab(48.97% -0.0155 -0.149)
OKLCHoklch(48.97% 0.15 264)
XYZxyz(13.2567, 11.3100, 44.6556)
Luminance0.1131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AB4 #B48D33
analogous
#339BB4 #335AB4 #4C33B4
triadic
#335AB4 #B4335A #5AB433
tetradic
#335AB4 #B4339B #B48D33 #33B44C
square
#335AB4 #B4339B #B48D33 #33B44C
split-complementary
#335AB4 #B44C33 #9BB433
monochromatic
#182A55 #254284 #335AB4 #557ACF #859FDC

Accessibility & contrast

On white

6.44
#335AB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#335AB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AB4
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AB4#FFFFFF#000000##FFFFFF
##335AB41.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2665B7
Deuteranopia (green-blind)
#0059B2
Tritanopia (blue-blind)
#006F7E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335ab4;
/* rgb */ color: rgb(51, 90, 180);
/* oklch */ color: oklch(49.0% 0.150 264.0);
Tailwind
colors: {
  custom: {
    50: '#7b88cb',
    500: '#335ab4',
    950: '#000000',
  },
}
SCSS
$custom: #335ab4;
$custom-light: #7b88cb;
$custom-dark: #000000;
JSON
{
  "hex": "#335ab4",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 180
  },
  "hsl": {
    "h": 221.86,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48968,
    "c": 0.14977,
    "h": 264
  },
  "luminance": 0.11311
}

Semantic roles & 50–950 ramp

primary
#335AB4
secondary
#C6B07D
accent
#B249DF
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #335AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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