#335FB0#335FB0

#335FB0 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.8% C 0.138 H 261.4°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#335FB0
RGBrgb(51, 95, 176)
HSLhsl(219, 55%, 45%)
HSVhsv(219, 71%, 69%)
CMYKcmyk(71%, 46%, 0%, 31%)
CIE-LABlab(41.25, 12.76, -47.67)
CIE-LCHlch(41.25, 49.35, 284.98°)
OKLaboklab(49.77% -0.0206 -0.1365)
OKLCHoklch(49.77% 0.138 261.4)
XYZxyz(13.2911, 12.0214, 42.6858)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FB0 #B08433
analogous
#339EB0 #335FB0 #4633B0
triadic
#335FB0 #B0335F #5FB033
tetradic
#335FB0 #B0339E #B08433 #33B046
square
#335FB0 #B0339E #B08433 #33B046
split-complementary
#335FB0 #B04633 #9EB033
monochromatic
#182C51 #254581 #335FB0 #537ECD #82A2DB

Accessibility & contrast

On white

6.17
#335FB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#335FB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FB0
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FB0#FFFFFF#000000##FFFFFF
##335FB01.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3667B3
Deuteranopia (green-blind)
#1C5CAE
Tritanopia (blue-blind)
#00727F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #335fb0;
/* rgb */ color: rgb(51, 95, 176);
/* oklch */ color: oklch(49.8% 0.138 261.4);
Tailwind
colors: {
  custom: {
    50: '#7a8bc8',
    500: '#335fb0',
    950: '#000000',
  },
}
SCSS
$custom: #335fb0;
$custom-light: #7a8bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#335fb0",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 176
  },
  "hsl": {
    "h": 218.88,
    "s": 55.066,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49767,
    "c": 0.13806,
    "h": 261.4
  },
  "luminance": 0.12023
}

Semantic roles & 50–950 ramp

primary
#335FB0
secondary
#C4AA7B
accent
#AA49DE
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #335FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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