#335EA2#335EA2

#335EA2 is a mid, moderate blue. Relative luminance 0.113; OKLCH L 48.6% C 0.120 H 259.2°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#335EA2
RGBrgb(51, 94, 162)
HSLhsl(217, 52%, 42%)
HSVhsv(217, 69%, 64%)
CMYKcmyk(68.5%, 42%, 0%, 36.5%)
CIE-LABlab(40.11, 8.20, -41.21)
CIE-LCHlch(40.11, 42.02, 281.25°)
OKLaboklab(48.61% -0.0224 -0.1176)
OKLCHoklch(48.61% 0.12 259.2)
XYZxyz(11.8872, 11.3167, 35.7333)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335EA2 #A27733
analogous
#3396A2 #335EA2 #4033A2
triadic
#335EA2 #A2335E #5EA233
tetradic
#335EA2 #A23396 #A27733 #33A240
square
#335EA2 #A23396 #A27733 #33A240
split-complementary
#335EA2 #A24033 #96A233
monochromatic
#162845 #244373 #335EA2 #4C7BC7 #7A9DD5

Accessibility & contrast

On white

6.43
#335EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#335EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335EA2
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335EA2#FFFFFF#000000##FFFFFF
##335EA21.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E64A5
Deuteranopia (green-blind)
#2D5AA1
Tritanopia (blue-blind)
#006E78
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335ea2;
/* rgb */ color: rgb(51, 94, 162);
/* oklch */ color: oklch(48.6% 0.120 259.2);
Tailwind
colors: {
  custom: {
    50: '#778bbe',
    500: '#335ea2',
    950: '#000000',
  },
}
SCSS
$custom: #335ea2;
$custom-light: #778bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#335ea2",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 162
  },
  "hsl": {
    "h": 216.757,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48611,
    "c": 0.11967,
    "h": 259.2
  },
  "luminance": 0.11318
}

Semantic roles & 50–950 ramp

primary
#335EA2
secondary
#BEA173
accent
#A44CDC
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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