#335EB4#335EB4

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

Color values

HEX#335EB4
RGBrgb(51, 94, 180)
HSLhsl(220, 56%, 45%)
HSVhsv(220, 72%, 71%)
CMYKcmyk(71.7%, 47.8%, 0%, 29.4%)
CIE-LABlab(41.22, 14.90, -50.07)
CIE-LCHlch(41.22, 52.23, 286.57°)
OKLaboklab(49.83% -0.0191 -0.1436)
OKLCHoklch(49.83% 0.145 262.4)
XYZxyz(13.6032, 12.0031, 44.7711)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335EB4 #B48933
analogous
#339EB4 #335EB4 #4833B4
triadic
#335EB4 #B4335E #5EB433
tetradic
#335EB4 #B4339E #B48933 #33B448
square
#335EB4 #B4339E #B48933 #33B448
split-complementary
#335EB4 #B44833 #9EB433
monochromatic
#182C55 #254584 #335EB4 #557ECF #85A2DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##335EB4#FFFFFF#000000##FFFFFF
##335EB41.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)
#3068B7
Deuteranopia (green-blind)
#0E5CB2
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #335eb4;
/* rgb */ color: rgb(51, 94, 180);
/* oklch */ color: oklch(49.8% 0.145 262.4);
Tailwind
colors: {
  custom: {
    50: '#7b8bcb',
    500: '#335eb4',
    950: '#000000',
  },
}
SCSS
$custom: #335eb4;
$custom-light: #7b8bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#335eb4",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 180
  },
  "hsl": {
    "h": 220,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49827,
    "c": 0.14483,
    "h": 262.4
  },
  "luminance": 0.12005
}

Semantic roles & 50–950 ramp

primary
#335EB4
secondary
#C6AE7D
accent
#AD49DF
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #335EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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