#335EC7#335EC7

#335EC7 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.2% C 0.171 H 264.4°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#335EC7
RGBrgb(51, 94, 199)
HSLhsl(223, 59%, 49%)
HSVhsv(223, 74%, 78%)
CMYKcmyk(74.4%, 52.8%, 0%, 22%)
CIE-LABlab(42.51, 22.00, -59.05)
CIE-LCHlch(42.51, 63.02, 290.43°)
OKLaboklab(51.22% -0.0168 -0.17)
OKLCHoklch(51.22% 0.171 264.4)
XYZxyz(15.6731, 12.8310, 55.6724)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335EC7 #C79C33
analogous
#33A8C7 #335EC7 #5233C7
triadic
#335EC7 #C7335E #5EC733
tetradic
#335EC7 #C733A8 #C79C33 #33C752
square
#335EC7 #C733A8 #C79C33 #33C752
split-complementary
#335EC7 #C75233 #A8C733
monochromatic
#1A3066 #274796 #335EC7 #6183D6 #91A9E3

Accessibility & contrast

On white

5.89
#335EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#335EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335EC7
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335EC7#FFFFFF#000000##FFFFFF
##335EC71.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#126BCB
Deuteranopia (green-blind)
#005EC5
Tritanopia (blue-blind)
#007789
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #335ec7;
/* rgb */ color: rgb(51, 94, 199);
/* oklch */ color: oklch(51.2% 0.171 264.4);
Tailwind
colors: {
  custom: {
    50: '#7f8bd9',
    500: '#335ec7',
    950: '#000000',
  },
}
SCSS
$custom: #335ec7;
$custom-light: #7f8bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#335ec7",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 199
  },
  "hsl": {
    "h": 222.568,
    "s": 59.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.51218,
    "c": 0.17084,
    "h": 264.4
  },
  "luminance": 0.12833
}

Semantic roles & 50–950 ramp

primary
#335EC7
secondary
#CEBA88
accent
#B545E2
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #335EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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