#335EA5#335EA5

#335EA5 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 48.8% C 0.124 H 259.9°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#335EA5
RGBrgb(51, 94, 165)
HSLhsl(217, 53%, 42%)
HSVhsv(217, 69%, 65%)
CMYKcmyk(69.1%, 43%, 0%, 35.3%)
CIE-LABlab(40.29, 9.31, -42.71)
CIE-LCHlch(40.29, 43.72, 282.29°)
OKLaboklab(48.81% -0.0217 -0.122)
OKLCHoklch(48.81% 0.124 259.9)
XYZxyz(12.1570, 11.4246, 37.1545)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335EA5 #A57A33
analogous
#3397A5 #335EA5 #4133A5
triadic
#335EA5 #A5335E #5EA533
tetradic
#335EA5 #A53397 #A57A33 #33A541
square
#335EA5 #A53397 #A57A33 #33A541
split-complementary
#335EA5 #A54133 #97A533
monochromatic
#162948 #254376 #335EA5 #4D7CC8 #7C9ED6

Accessibility & contrast

On white

6.39
#335EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#335EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335EA5
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335EA5#FFFFFF#000000##FFFFFF
##335EA51.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C65A8
Deuteranopia (green-blind)
#2A5AA4
Tritanopia (blue-blind)
#006E79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335ea5;
/* rgb */ color: rgb(51, 94, 165);
/* oklch */ color: oklch(48.8% 0.124 259.9);
Tailwind
colors: {
  custom: {
    50: '#788bc0',
    500: '#335ea5',
    950: '#000000',
  },
}
SCSS
$custom: #335ea5;
$custom-light: #788bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#335ea5",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 165
  },
  "hsl": {
    "h": 217.368,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48807,
    "c": 0.12388,
    "h": 259.9
  },
  "luminance": 0.11426
}

Semantic roles & 50–950 ramp

primary
#335EA5
secondary
#BFA375
accent
#A64CDC
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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