#335E9D#335E9D

#335E9D is a mid, moderate blue. Relative luminance 0.111; OKLCH L 48.3% C 0.113 H 258.0°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#335E9D
RGBrgb(51, 94, 157)
HSLhsl(216, 51%, 41%)
HSVhsv(216, 68%, 62%)
CMYKcmyk(67.5%, 40.1%, 0%, 38.4%)
CIE-LABlab(39.82, 6.35, -38.70)
CIE-LCHlch(39.82, 39.21, 279.32°)
OKLaboklab(48.29% -0.0235 -0.1102)
OKLCHoklch(48.29% 0.113 258)
XYZxyz(11.4516, 11.1424, 33.4389)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335E9D #9D7233
analogous
#33939D #335E9D #3D339D
triadic
#335E9D #9D335E #5E9D33
tetradic
#335E9D #9D3393 #9D7233 #339D3D
square
#335E9D #9D3393 #9D7233 #339D3D
split-complementary
#335E9D #9D3D33 #939D33
monochromatic
#152741 #24426F #335E9D #497BC4 #779DD3

Accessibility & contrast

On white

6.50
#335E9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#335E9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335E9D
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335E9D#FFFFFF#000000##FFFFFF
##335E9D1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4263A0
Deuteranopia (green-blind)
#32599C
Tritanopia (blue-blind)
#006C76
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335e9d;
/* rgb */ color: rgb(51, 94, 157);
/* oklch */ color: oklch(48.3% 0.113 258.0);
Tailwind
colors: {
  custom: {
    50: '#768bba',
    500: '#335e9d',
    950: '#000000',
  },
}
SCSS
$custom: #335e9d;
$custom-light: #768bba;
$custom-dark: #000000;
JSON
{
  "hex": "#335e9d",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 157
  },
  "hsl": {
    "h": 215.66,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48293,
    "c": 0.11265,
    "h": 258
  },
  "luminance": 0.11144
}

Semantic roles & 50–950 ramp

primary
#335E9D
secondary
#BB9D70
accent
#A14DDA
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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