#335EA6#335EA6

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

Color values

HEX#335EA6
RGBrgb(51, 94, 166)
HSLhsl(218, 53%, 43%)
HSVhsv(218, 69%, 65%)
CMYKcmyk(69.3%, 43.4%, 0%, 34.9%)
CIE-LABlab(40.35, 9.68, -43.21)
CIE-LCHlch(40.35, 44.28, 282.63°)
OKLaboklab(48.87% -0.0215 -0.1234)
OKLCHoklch(48.87% 0.125 260.1)
XYZxyz(12.2484, 11.4611, 37.6357)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335EA6 #A67B33
analogous
#3398A6 #335EA6 #4133A6
triadic
#335EA6 #A6335E #5EA633
tetradic
#335EA6 #A63398 #A67B33 #33A641
square
#335EA6 #A63398 #A67B33 #33A641
split-complementary
#335EA6 #A64133 #98A633
monochromatic
#162948 #254377 #335EA6 #4E7CC9 #7C9ED7

Accessibility & contrast

On white

6.38
#335EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #335EA6
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335EA6#FFFFFF#000000##FFFFFF
##335EA61.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C65A9
Deuteranopia (green-blind)
#285AA5
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335ea6;
/* rgb */ color: rgb(51, 94, 166);
/* oklch */ color: oklch(48.9% 0.125 260.1);
Tailwind
colors: {
  custom: {
    50: '#788bc1',
    500: '#335ea6',
    950: '#000000',
  },
}
SCSS
$custom: #335ea6;
$custom-light: #788bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#335ea6",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 166
  },
  "hsl": {
    "h": 217.565,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.48872,
    "c": 0.12529,
    "h": 260.1
  },
  "luminance": 0.11462
}

Semantic roles & 50–950 ramp

primary
#335EA6
secondary
#C0A475
accent
#A64BDC
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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