#335AB8#335AB8

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

Color values

HEX#335AB8
RGBrgb(51, 90, 184)
HSLhsl(222, 57%, 46%)
HSVhsv(222, 72%, 72%)
CMYKcmyk(72.3%, 51.1%, 0%, 27.8%)
CIE-LABlab(40.37, 18.99, -53.78)
CIE-LCHlch(40.37, 57.04, 289.45°)
OKLaboklab(49.26% -0.0151 -0.1546)
OKLCHoklch(49.26% 0.155 264.4)
XYZxyz(13.6701, 11.4754, 46.8326)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AB8 #B89133
analogous
#339CB8 #335AB8 #4E33B8
triadic
#335AB8 #B8335A #5AB833
tetradic
#335AB8 #B8339C #B89133 #33B84E
square
#335AB8 #B8339C #B89133 #33B84E
split-complementary
#335AB8 #B84E33 #9CB833
monochromatic
#182B58 #264388 #335AB8 #587BD1 #88A1DE

Accessibility & contrast

On white

6.37
#335AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #335AB8
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AB8#FFFFFF#000000##FFFFFF
##335AB81.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2066BB
Deuteranopia (green-blind)
#0059B6
Tritanopia (blue-blind)
#007080
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335ab8;
/* rgb */ color: rgb(51, 90, 184);
/* oklch */ color: oklch(49.3% 0.155 264.4);
Tailwind
colors: {
  custom: {
    50: '#7c88ce',
    500: '#335ab8',
    950: '#000000',
  },
}
SCSS
$custom: #335ab8;
$custom-light: #7c88ce;
$custom-dark: #000000;
JSON
{
  "hex": "#335ab8",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 184
  },
  "hsl": {
    "h": 222.406,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49262,
    "c": 0.15531,
    "h": 264.4
  },
  "luminance": 0.11477
}

Semantic roles & 50–950 ramp

primary
#335AB8
secondary
#C8B27F
accent
#B348E0
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #335AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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