#335FB8#335FB8

#335FB8 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.3% C 0.149 H 262.5°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#335FB8
RGBrgb(51, 95, 184)
HSLhsl(220, 57%, 46%)
HSVhsv(220, 72%, 72%)
CMYKcmyk(72.3%, 48.4%, 0%, 27.8%)
CIE-LABlab(41.76, 15.75, -51.54)
CIE-LCHlch(41.76, 53.89, 286.99°)
OKLaboklab(50.33% -0.0194 -0.1479)
OKLCHoklch(50.33% 0.149 262.5)
XYZxyz(14.1061, 12.3474, 46.9780)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FB8 #B88C33
analogous
#33A1B8 #335FB8 #4933B8
triadic
#335FB8 #B8335F #5FB833
tetradic
#335FB8 #B833A1 #B88C33 #33B849
square
#335FB8 #B833A1 #B88C33 #33B849
split-complementary
#335FB8 #B84933 #A1B833
monochromatic
#182E58 #264688 #335FB8 #5880D1 #88A4DE

Accessibility & contrast

On white

6.05
#335FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#335FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FB8
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FB8#FFFFFF#000000##FFFFFF
##335FB81.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E69BB
Deuteranopia (green-blind)
#055DB6
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #335fb8;
/* rgb */ color: rgb(51, 95, 184);
/* oklch */ color: oklch(50.3% 0.149 262.5);
Tailwind
colors: {
  custom: {
    50: '#7c8bce',
    500: '#335fb8',
    950: '#000000',
  },
}
SCSS
$custom: #335fb8;
$custom-light: #7c8bce;
$custom-dark: #000000;
JSON
{
  "hex": "#335fb8",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 184
  },
  "hsl": {
    "h": 220.15,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50326,
    "c": 0.14914,
    "h": 262.5
  },
  "luminance": 0.12349
}

Semantic roles & 50–950 ramp

primary
#335FB8
secondary
#C8B07F
accent
#AE48E0
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #335FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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