#335FB6#335FB6

#335FB6 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.2% C 0.146 H 262.3°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#335FB6
RGBrgb(51, 95, 182)
HSLhsl(220, 56%, 46%)
HSVhsv(220, 72%, 71%)
CMYKcmyk(72%, 47.8%, 0%, 28.6%)
CIE-LABlab(41.63, 15.00, -50.58)
CIE-LCHlch(41.63, 52.75, 286.52°)
OKLaboklab(50.18% -0.0197 -0.1451)
OKLCHoklch(50.18% 0.146 262.3)
XYZxyz(13.8979, 12.2641, 45.8817)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FB6 #B68A33
analogous
#33A0B6 #335FB6 #4833B6
triadic
#335FB6 #B6335F #5FB633
tetradic
#335FB6 #B633A0 #B68A33 #33B648
square
#335FB6 #B633A0 #B68A33 #33B648
split-complementary
#335FB6 #B64833 #A0B633
monochromatic
#182D56 #264686 #335FB6 #567FD0 #86A3DD

Accessibility & contrast

On white

6.08
#335FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#335FB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FB6
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FB6#FFFFFF#000000##FFFFFF
##335FB61.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3069B9
Deuteranopia (green-blind)
#0D5DB4
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #335fb6;
/* rgb */ color: rgb(51, 95, 182);
/* oklch */ color: oklch(50.2% 0.146 262.3);
Tailwind
colors: {
  custom: {
    50: '#7b8bcc',
    500: '#335fb6',
    950: '#000000',
  },
}
SCSS
$custom: #335fb6;
$custom-light: #7b8bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#335fb6",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 182
  },
  "hsl": {
    "h": 219.847,
    "s": 56.223,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50184,
    "c": 0.14639,
    "h": 262.3
  },
  "luminance": 0.12266
}

Semantic roles & 50–950 ramp

primary
#335FB6
secondary
#C7AE7E
accent
#AD48E0
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #335FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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