#335EA7#335EA7

#335EA7 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 48.9% C 0.127 H 260.3°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#335EA7
RGBrgb(51, 94, 167)
HSLhsl(218, 53%, 43%)
HSVhsv(218, 69%, 65%)
CMYKcmyk(69.5%, 43.7%, 0%, 34.5%)
CIE-LABlab(40.41, 10.05, -43.71)
CIE-LCHlch(40.41, 44.85, 282.95°)
OKLaboklab(48.94% -0.0213 -0.1249)
OKLCHoklch(48.94% 0.127 260.3)
XYZxyz(12.3405, 11.4980, 38.1207)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335EA7 #A77C33
analogous
#3398A7 #335EA7 #4233A7
triadic
#335EA7 #A7335E #5EA733
tetradic
#335EA7 #A73398 #A77C33 #33A742
square
#335EA7 #A73398 #A77C33 #33A742
split-complementary
#335EA7 #A74233 #98A733
monochromatic
#162949 #254478 #335EA7 #4E7CC9 #7D9FD7

Accessibility & contrast

On white

6.36
#335EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#335EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335EA7
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335EA7#FFFFFF#000000##FFFFFF
##335EA71.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B65AA
Deuteranopia (green-blind)
#275AA6
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335ea7;
/* rgb */ color: rgb(51, 94, 167);
/* oklch */ color: oklch(48.9% 0.127 260.3);
Tailwind
colors: {
  custom: {
    50: '#788bc1',
    500: '#335ea7',
    950: '#000000',
  },
}
SCSS
$custom: #335ea7;
$custom-light: #788bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#335ea7",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 167
  },
  "hsl": {
    "h": 217.759,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48938,
    "c": 0.12669,
    "h": 260.3
  },
  "luminance": 0.11499
}

Semantic roles & 50–950 ramp

primary
#335EA7
secondary
#C0A576
accent
#A74BDD
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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