#335EB2#335EB2

#335EB2 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.7% C 0.142 H 262.2°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#335EB2
RGBrgb(51, 94, 178)
HSLhsl(220, 55%, 45%)
HSVhsv(220, 71%, 70%)
CMYKcmyk(71.3%, 47.2%, 0%, 30.2%)
CIE-LABlab(41.09, 14.15, -49.10)
CIE-LCHlch(41.09, 51.10, 286.08°)
OKLaboklab(49.69% -0.0194 -0.1407)
OKLCHoklch(49.69% 0.142 262.2)
XYZxyz(13.4010, 11.9222, 43.7058)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335EB2 #B28733
analogous
#339EB2 #335EB2 #4733B2
triadic
#335EB2 #B2335E #5EB233
tetradic
#335EB2 #B2339E #B28733 #33B247
square
#335EB2 #B2339E #B28733 #33B247
split-complementary
#335EB2 #B24733 #9EB233
monochromatic
#182C53 #254582 #335EB2 #547DCE #84A2DC

Accessibility & contrast

On white

6.20
#335EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#335EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335EB2
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335EB2#FFFFFF#000000##FFFFFF
##335EB21.006.203.386.20
#FFFFFF6.201.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3267B5
Deuteranopia (green-blind)
#145BB0
Tritanopia (blue-blind)
#00727F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #335eb2;
/* rgb */ color: rgb(51, 94, 178);
/* oklch */ color: oklch(49.7% 0.142 262.2);
Tailwind
colors: {
  custom: {
    50: '#7a8bc9',
    500: '#335eb2',
    950: '#000000',
  },
}
SCSS
$custom: #335eb2;
$custom-light: #7a8bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#335eb2",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 178
  },
  "hsl": {
    "h": 219.685,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49687,
    "c": 0.14206,
    "h": 262.2
  },
  "luminance": 0.11924
}

Semantic roles & 50–950 ramp

primary
#335EB2
secondary
#C5AC7C
accent
#AC49DF
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #335EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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