#335ED7#335ED7

#335ED7 is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.5% C 0.192 H 265.3°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#335ED7
RGBrgb(51, 94, 215)
HSLhsl(224, 67%, 52%)
HSVhsv(224, 76%, 84%)
CMYKcmyk(76.3%, 56.3%, 0%, 15.7%)
CIE-LABlab(43.67, 27.93, -66.36)
CIE-LCHlch(43.67, 72.00, 292.83°)
OKLaboklab(52.47% -0.0156 -0.1915)
OKLCHoklch(52.47% 0.192 265.3)
XYZxyz(17.6294, 13.6135, 65.9753)
Luminance0.1362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335ED7 #D7AC33
analogous
#33B0D7 #335ED7 #5A33D7
triadic
#335ED7 #D7335E #5ED733
tetradic
#335ED7 #D733B0 #D7AC33 #33D75A
square
#335ED7 #D733B0 #D7AC33 #33D75A
split-complementary
#335ED7 #D75A33 #B0D733
monochromatic
#183178 #2246AB #335ED7 #6686E1 #99AFEB

Accessibility & contrast

On white

5.64
#335ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#335ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335ED7
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335ED7#FFFFFF#000000##FFFFFF
##335ED71.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDB
Deuteranopia (green-blind)
#0060D5
Tritanopia (blue-blind)
#007C91
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #335ed7;
/* rgb */ color: rgb(51, 94, 215);
/* oklch */ color: oklch(52.5% 0.192 265.3);
Tailwind
colors: {
  custom: {
    50: '#828be4',
    500: '#335ed7',
    950: '#000000',
  },
}
SCSS
$custom: #335ed7;
$custom-light: #828be4;
$custom-dark: #000000;
JSON
{
  "hex": "#335ed7",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 215
  },
  "hsl": {
    "h": 224.268,
    "s": 67.213,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52466,
    "c": 0.19212,
    "h": 265.3
  },
  "luminance": 0.13616
}

Semantic roles & 50–950 ramp

primary
#335ED7
secondary
#D7C48F
accent
#BD3EEA
background
#F8F8FE
surface
#F0F0FC
border
#CBCBD5
text
#0C0B16
muted
#7D7C84

Preview Lab

Preview with #335ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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