#335EA9#335EA9

#335EA9 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.1% C 0.130 H 260.7°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#335EA9
RGBrgb(51, 94, 169)
HSLhsl(218, 54%, 43%)
HSVhsv(218, 70%, 66%)
CMYKcmyk(69.8%, 44.4%, 0%, 33.7%)
CIE-LABlab(40.53, 10.79, -44.70)
CIE-LCHlch(40.53, 45.98, 283.58°)
OKLaboklab(49.07% -0.021 -0.1278)
OKLCHoklch(49.07% 0.13 260.7)
XYZxyz(12.5268, 11.5725, 39.1020)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335EA9 #A97E33
analogous
#3399A9 #335EA9 #4333A9
triadic
#335EA9 #A9335E #5EA933
tetradic
#335EA9 #A93399 #A97E33 #33A943
square
#335EA9 #A93399 #A97E33 #33A943
split-complementary
#335EA9 #A94333 #99A933
monochromatic
#172A4B #25447A #335EA9 #4F7CCA #7E9FD8

Accessibility & contrast

On white

6.34
#335EA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#335EA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335EA9
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335EA9#FFFFFF#000000##FFFFFF
##335EA91.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3965AC
Deuteranopia (green-blind)
#245AA7
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #335ea9;
/* rgb */ color: rgb(51, 94, 169);
/* oklch */ color: oklch(49.1% 0.130 260.7);
Tailwind
colors: {
  custom: {
    50: '#798bc3',
    500: '#335ea9',
    950: '#000000',
  },
}
SCSS
$custom: #335ea9;
$custom-light: #798bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#335ea9",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 169
  },
  "hsl": {
    "h": 218.136,
    "s": 53.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.49072,
    "c": 0.1295,
    "h": 260.7
  },
  "luminance": 0.11574
}

Semantic roles & 50–950 ramp

primary
#335EA9
secondary
#C1A677
accent
#A84BDD
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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