#335EC1#335EC1

#335EC1 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.8% C 0.163 H 263.9°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#335EC1
RGBrgb(51, 94, 193)
HSLhsl(222, 58%, 48%)
HSVhsv(222, 74%, 76%)
CMYKcmyk(73.6%, 51.3%, 0%, 24.3%)
CIE-LABlab(42.09, 19.76, -56.25)
CIE-LCHlch(42.09, 59.62, 289.35°)
OKLaboklab(50.77% -0.0174 -0.1618)
OKLCHoklch(50.77% 0.163 263.9)
XYZxyz(14.9902, 12.5578, 52.0756)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335EC1 #C19633
analogous
#33A5C1 #335EC1 #4F33C1
triadic
#335EC1 #C1335E #5EC133
tetradic
#335EC1 #C133A5 #C19633 #33C14F
square
#335EC1 #C133A5 #C19633 #33C14F
split-complementary
#335EC1 #C14F33 #A5C133
monochromatic
#192F60 #264691 #335EC1 #5D81D4 #8DA7E1

Accessibility & contrast

On white

5.98
#335EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#335EC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335EC1
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335EC1#FFFFFF#000000##FFFFFF
##335EC11.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F6AC5
Deuteranopia (green-blind)
#005DBF
Tritanopia (blue-blind)
#007686
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #335ec1;
/* rgb */ color: rgb(51, 94, 193);
/* oklch */ color: oklch(50.8% 0.163 263.9);
Tailwind
colors: {
  custom: {
    50: '#7e8bd4',
    500: '#335ec1',
    950: '#000000',
  },
}
SCSS
$custom: #335ec1;
$custom-light: #7e8bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#335ec1",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 193
  },
  "hsl": {
    "h": 221.831,
    "s": 58.197,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50768,
    "c": 0.16271,
    "h": 263.9
  },
  "luminance": 0.12559
}

Semantic roles & 50–950 ramp

primary
#335EC1
secondary
#CBB684
accent
#B246E1
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #335EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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