#335AB6#335AB6

#335AB6 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.1% C 0.153 H 264.2°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#335AB6
RGBrgb(51, 90, 182)
HSLhsl(222, 56%, 46%)
HSVhsv(222, 72%, 71%)
CMYKcmyk(72%, 50.5%, 0%, 28.6%)
CIE-LABlab(40.23, 18.25, -52.83)
CIE-LCHlch(40.23, 55.89, 289.05°)
OKLaboklab(49.11% -0.0153 -0.1518)
OKLCHoklch(49.11% 0.153 264.2)
XYZxyz(13.4619, 11.3921, 45.7363)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AB6 #B68F33
analogous
#339BB6 #335AB6 #4D33B6
triadic
#335AB6 #B6335A #5AB633
tetradic
#335AB6 #B6339B #B68F33 #33B64D
square
#335AB6 #B6339B #B68F33 #33B64D
split-complementary
#335AB6 #B64D33 #9BB633
monochromatic
#182B56 #264286 #335AB6 #567BD0 #86A0DD

Accessibility & contrast

On white

6.40
#335AB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#335AB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AB6
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AB6#FFFFFF#000000##FFFFFF
##335AB61.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2365B9
Deuteranopia (green-blind)
#0059B4
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335ab6;
/* rgb */ color: rgb(51, 90, 182);
/* oklch */ color: oklch(49.1% 0.153 264.2);
Tailwind
colors: {
  custom: {
    50: '#7b88cc',
    500: '#335ab6',
    950: '#000000',
  },
}
SCSS
$custom: #335ab6;
$custom-light: #7b88cc;
$custom-dark: #000000;
JSON
{
  "hex": "#335ab6",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 182
  },
  "hsl": {
    "h": 222.137,
    "s": 56.223,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49115,
    "c": 0.15255,
    "h": 264.2
  },
  "luminance": 0.11394
}

Semantic roles & 50–950 ramp

primary
#335AB6
secondary
#C7B17E
accent
#B248E0
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #335AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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