#335FB4#335FB4

#335FB4 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.0% C 0.144 H 262.0°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#335FB4
RGBrgb(51, 95, 180)
HSLhsl(220, 56%, 45%)
HSVhsv(220, 72%, 71%)
CMYKcmyk(71.7%, 47.2%, 0%, 29.4%)
CIE-LABlab(41.50, 14.25, -49.61)
CIE-LCHlch(41.50, 51.62, 286.03°)
OKLaboklab(50.04% -0.02 -0.1422)
OKLCHoklch(50.04% 0.144 262)
XYZxyz(13.6927, 12.1821, 44.8009)
Luminance0.1218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FB4 #B48833
analogous
#339FB4 #335FB4 #4833B4
triadic
#335FB4 #B4335F #5FB433
tetradic
#335FB4 #B4339F #B48833 #33B448
square
#335FB4 #B4339F #B48833 #33B448
split-complementary
#335FB4 #B44833 #9FB433
monochromatic
#182D55 #254684 #335FB4 #557FCF #85A3DC

Accessibility & contrast

On white

6.11
#335FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#335FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FB4
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FB4#FFFFFF#000000##FFFFFF
##335FB41.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3268B7
Deuteranopia (green-blind)
#135CB2
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #335fb4;
/* rgb */ color: rgb(51, 95, 180);
/* oklch */ color: oklch(50.0% 0.144 262.0);
Tailwind
colors: {
  custom: {
    50: '#7b8bcb',
    500: '#335fb4',
    950: '#000000',
  },
}
SCSS
$custom: #335fb4;
$custom-light: #7b8bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#335fb4",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 180
  },
  "hsl": {
    "h": 219.535,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50044,
    "c": 0.14362,
    "h": 262
  },
  "luminance": 0.12184
}

Semantic roles & 50–950 ramp

primary
#335FB4
secondary
#C6AD7D
accent
#AC49DF
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #335FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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