#335D9E#335D9E

#335D9E is a mid, moderate blue. Relative luminance 0.110; OKLCH L 48.1% C 0.115 H 258.9°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#335D9E
RGBrgb(51, 93, 158)
HSLhsl(216, 51%, 41%)
HSVhsv(216, 68%, 62%)
CMYKcmyk(67.7%, 41.1%, 0%, 38%)
CIE-LABlab(39.58, 7.36, -39.67)
CIE-LCHlch(39.58, 40.35, 280.51°)
OKLaboklab(48.13% -0.0222 -0.113)
OKLCHoklch(48.13% 0.115 258.9)
XYZxyz(11.4489, 11.0000, 33.8610)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335D9E #9E7433
analogous
#33929E #335D9E #3F339E
triadic
#335D9E #9E335D #5D9E33
tetradic
#335D9E #9E3392 #9E7433 #339E3F
square
#335D9E #9E3392 #9E7433 #339E3F
split-complementary
#335D9E #9E3F33 #929E33
monochromatic
#152741 #244270 #335D9E #4A7AC4 #789CD3

Accessibility & contrast

On white

6.56
#335D9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#335D9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335D9E
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335D9E#FFFFFF#000000##FFFFFF
##335D9E1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F63A1
Deuteranopia (green-blind)
#2F599D
Tritanopia (blue-blind)
#006C76
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335d9e;
/* rgb */ color: rgb(51, 93, 158);
/* oklch */ color: oklch(48.1% 0.115 258.9);
Tailwind
colors: {
  custom: {
    50: '#778abb',
    500: '#335d9e',
    950: '#000000',
  },
}
SCSS
$custom: #335d9e;
$custom-light: #778abb;
$custom-dark: #000000;
JSON
{
  "hex": "#335d9e",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 158
  },
  "hsl": {
    "h": 216.449,
    "s": 51.196,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48126,
    "c": 0.11522,
    "h": 258.9
  },
  "luminance": 0.11001
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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