#335BB8#335BB8

#335BB8 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.5% C 0.154 H 264.1°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#335BB8
RGBrgb(51, 91, 184)
HSLhsl(222, 57%, 46%)
HSVhsv(222, 72%, 72%)
CMYKcmyk(72.3%, 50.5%, 0%, 27.8%)
CIE-LABlab(40.65, 18.34, -53.33)
CIE-LCHlch(40.65, 56.40, 288.98°)
OKLaboklab(49.47% -0.0159 -0.1532)
OKLCHoklch(49.47% 0.154 264.1)
XYZxyz(13.7550, 11.6452, 46.8609)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BB8 #B89033
analogous
#339DB8 #335BB8 #4D33B8
triadic
#335BB8 #B8335B #5BB833
tetradic
#335BB8 #B8339D #B89033 #33B84D
square
#335BB8 #B8339D #B89033 #33B84D
split-complementary
#335BB8 #B84D33 #9DB833
monochromatic
#182C58 #264388 #335BB8 #587CD1 #88A1DE

Accessibility & contrast

On white

6.31
#335BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#335BB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335BB8
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BB8#FFFFFF#000000##FFFFFF
##335BB81.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2366BB
Deuteranopia (green-blind)
#005AB6
Tritanopia (blue-blind)
#007181
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #335bb8;
/* rgb */ color: rgb(51, 91, 184);
/* oklch */ color: oklch(49.5% 0.154 264.1);
Tailwind
colors: {
  custom: {
    50: '#7c88ce',
    500: '#335bb8',
    950: '#000000',
  },
}
SCSS
$custom: #335bb8;
$custom-light: #7c88ce;
$custom-dark: #000000;
JSON
{
  "hex": "#335bb8",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 184
  },
  "hsl": {
    "h": 221.955,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49473,
    "c": 0.15407,
    "h": 264.1
  },
  "luminance": 0.11647
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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