#335EB1#335EB1

#335EB1 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.6% C 0.141 H 262.0°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#335EB1
RGBrgb(51, 94, 177)
HSLhsl(220, 55%, 45%)
HSVhsv(220, 71%, 69%)
CMYKcmyk(71.2%, 46.9%, 0%, 30.6%)
CIE-LABlab(41.03, 13.78, -48.61)
CIE-LCHlch(41.03, 50.53, 285.82°)
OKLaboklab(49.62% -0.0196 -0.1393)
OKLCHoklch(49.62% 0.141 262)
XYZxyz(13.3009, 11.8821, 43.1790)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335EB1 #B18633
analogous
#339DB1 #335EB1 #4733B1
triadic
#335EB1 #B1335E #5EB133
tetradic
#335EB1 #B1339D #B18633 #33B147
square
#335EB1 #B1339D #B18633 #33B147
split-complementary
#335EB1 #B14733 #9DB133
monochromatic
#182C52 #254581 #335EB1 #547DCE #83A1DB

Accessibility & contrast

On white

6.22
#335EB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #335EB1
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335EB1#FFFFFF#000000##FFFFFF
##335EB11.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3367B4
Deuteranopia (green-blind)
#165BAF
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #335eb1;
/* rgb */ color: rgb(51, 94, 177);
/* oklch */ color: oklch(49.6% 0.141 262.0);
Tailwind
colors: {
  custom: {
    50: '#7a8bc9',
    500: '#335eb1',
    950: '#000000',
  },
}
SCSS
$custom: #335eb1;
$custom-light: #7a8bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#335eb1",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 177
  },
  "hsl": {
    "h": 219.524,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49617,
    "c": 0.14067,
    "h": 262
  },
  "luminance": 0.11884
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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