#335FB1#335FB1

#335FB1 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 49.8% C 0.139 H 261.6°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#335FB1
RGBrgb(51, 95, 177)
HSLhsl(219, 55%, 45%)
HSVhsv(219, 71%, 69%)
CMYKcmyk(71.2%, 46.3%, 0%, 30.6%)
CIE-LABlab(41.31, 13.13, -48.16)
CIE-LCHlch(41.31, 49.91, 285.25°)
OKLaboklab(49.84% -0.0205 -0.1379)
OKLCHoklch(49.84% 0.139 261.6)
XYZxyz(13.3904, 12.0611, 43.2088)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FB1 #B18533
analogous
#339EB1 #335FB1 #4633B1
triadic
#335FB1 #B1335F #5FB133
tetradic
#335FB1 #B1339E #B18533 #33B146
square
#335FB1 #B1339E #B18533 #33B146
split-complementary
#335FB1 #B14633 #9EB133
monochromatic
#182C52 #254581 #335FB1 #547ECE #83A2DB

Accessibility & contrast

On white

6.15
#335FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#335FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FB1
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FB1#FFFFFF#000000##FFFFFF
##335FB11.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3568B4
Deuteranopia (green-blind)
#1A5CAF
Tritanopia (blue-blind)
#00727F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #335fb1;
/* rgb */ color: rgb(51, 95, 177);
/* oklch */ color: oklch(49.8% 0.139 261.6);
Tailwind
colors: {
  custom: {
    50: '#7a8bc9',
    500: '#335fb1',
    950: '#000000',
  },
}
SCSS
$custom: #335fb1;
$custom-light: #7a8bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#335fb1",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 177
  },
  "hsl": {
    "h": 219.048,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49836,
    "c": 0.13945,
    "h": 261.6
  },
  "luminance": 0.12063
}

Semantic roles & 50–950 ramp

primary
#335FB1
secondary
#C5AB7B
accent
#AA49DF
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #335FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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