#335E9E#335E9E

#335E9E is a mid, moderate blue. Relative luminance 0.112; OKLCH L 48.4% C 0.114 H 258.2°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#335E9E
RGBrgb(51, 94, 158)
HSLhsl(216, 51%, 41%)
HSVhsv(216, 68%, 62%)
CMYKcmyk(67.7%, 40.5%, 0%, 38%)
CIE-LABlab(39.88, 6.72, -39.20)
CIE-LCHlch(39.88, 39.77, 279.73°)
OKLaboklab(48.36% -0.0233 -0.1116)
OKLCHoklch(48.36% 0.114 258.2)
XYZxyz(11.5373, 11.1767, 33.8904)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335E9E #9E7333
analogous
#33939E #335E9E #3D339E
triadic
#335E9E #9E335E #5E9E33
tetradic
#335E9E #9E3393 #9E7333 #339E3D
square
#335E9E #9E3393 #9E7333 #339E3D
split-complementary
#335E9E #9E3D33 #939E33
monochromatic
#152741 #244270 #335E9E #4A7BC4 #789DD3

Accessibility & contrast

On white

6.49
#335E9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#335E9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335E9E
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335E9E#FFFFFF#000000##FFFFFF
##335E9E1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4163A1
Deuteranopia (green-blind)
#31599D
Tritanopia (blue-blind)
#006D76
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335e9e;
/* rgb */ color: rgb(51, 94, 158);
/* oklch */ color: oklch(48.4% 0.114 258.2);
Tailwind
colors: {
  custom: {
    50: '#778bbb',
    500: '#335e9e',
    950: '#000000',
  },
}
SCSS
$custom: #335e9e;
$custom-light: #778bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#335e9e",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 158
  },
  "hsl": {
    "h": 215.888,
    "s": 51.196,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48356,
    "c": 0.11405,
    "h": 258.2
  },
  "luminance": 0.11178
}

Semantic roles & 50–950 ramp

primary
#335E9E
secondary
#BC9E71
accent
#A24DDB
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #335E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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