#335EB0#335EB0

#335EB0 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.5% C 0.139 H 261.9°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#335EB0
RGBrgb(51, 94, 176)
HSLhsl(219, 55%, 45%)
HSVhsv(219, 71%, 69%)
CMYKcmyk(71%, 46.6%, 0%, 31%)
CIE-LABlab(40.96, 13.40, -48.13)
CIE-LCHlch(40.96, 49.96, 285.56°)
OKLaboklab(49.55% -0.0197 -0.1379)
OKLCHoklch(49.55% 0.139 261.9)
XYZxyz(13.2016, 11.8424, 42.6559)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335EB0 #B08533
analogous
#339DB0 #335EB0 #4733B0
triadic
#335EB0 #B0335E #5EB033
tetradic
#335EB0 #B0339D #B08533 #33B047
square
#335EB0 #B0339D #B08533 #33B047
split-complementary
#335EB0 #B04733 #9DB033
monochromatic
#182B51 #254581 #335EB0 #537DCD #82A1DB

Accessibility & contrast

On white

6.23
#335EB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#335EB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335EB0
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335EB0#FFFFFF#000000##FFFFFF
##335EB01.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3467B3
Deuteranopia (green-blind)
#195BAE
Tritanopia (blue-blind)
#00717E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #335eb0;
/* rgb */ color: rgb(51, 94, 176);
/* oklch */ color: oklch(49.5% 0.139 261.9);
Tailwind
colors: {
  custom: {
    50: '#7a8bc8',
    500: '#335eb0',
    950: '#000000',
  },
}
SCSS
$custom: #335eb0;
$custom-light: #7a8bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#335eb0",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 176
  },
  "hsl": {
    "h": 219.36,
    "s": 55.066,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49548,
    "c": 0.13927,
    "h": 261.9
  },
  "luminance": 0.11844
}

Semantic roles & 50–950 ramp

primary
#335EB0
secondary
#C4AB7B
accent
#AB49DE
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #335EB0

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

Preview Lab → · Contrast checker → · Palette generator →

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