#335BB6#335BB6

#335BB6 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.3% C 0.151 H 263.9°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#335BB6
RGBrgb(51, 91, 182)
HSLhsl(222, 56%, 46%)
HSVhsv(222, 72%, 71%)
CMYKcmyk(72%, 50%, 0%, 28.6%)
CIE-LABlab(40.51, 17.59, -52.38)
CIE-LCHlch(40.51, 55.26, 288.57°)
OKLaboklab(49.33% -0.0162 -0.1504)
OKLCHoklch(49.33% 0.151 263.9)
XYZxyz(13.5468, 11.5619, 45.7646)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BB6 #B68E33
analogous
#339CB6 #335BB6 #4C33B6
triadic
#335BB6 #B6335B #5BB633
tetradic
#335BB6 #B6339C #B68E33 #33B64C
square
#335BB6 #B6339C #B68E33 #33B64C
split-complementary
#335BB6 #B64C33 #9CB633
monochromatic
#182B56 #264386 #335BB6 #567BD0 #86A1DD

Accessibility & contrast

On white

6.34
#335BB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#335BB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335BB6
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BB6#FFFFFF#000000##FFFFFF
##335BB61.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2666B9
Deuteranopia (green-blind)
#005AB4
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335bb6;
/* rgb */ color: rgb(51, 91, 182);
/* oklch */ color: oklch(49.3% 0.151 263.9);
Tailwind
colors: {
  custom: {
    50: '#7b88cc',
    500: '#335bb6',
    950: '#000000',
  },
}
SCSS
$custom: #335bb6;
$custom-light: #7b88cc;
$custom-dark: #000000;
JSON
{
  "hex": "#335bb6",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 182
  },
  "hsl": {
    "h": 221.679,
    "s": 56.223,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49327,
    "c": 0.15131,
    "h": 263.9
  },
  "luminance": 0.11563
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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