#335D9D#335D9D

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

Color values

HEX#335D9D
RGBrgb(51, 93, 157)
HSLhsl(216, 51%, 41%)
HSVhsv(216, 68%, 62%)
CMYKcmyk(67.5%, 40.8%, 0%, 38.4%)
CIE-LABlab(39.52, 6.99, -39.17)
CIE-LCHlch(39.52, 39.79, 280.12°)
OKLaboklab(48.06% -0.0225 -0.1116)
OKLCHoklch(48.06% 0.114 258.6)
XYZxyz(11.3632, 10.9657, 33.4095)
Luminance0.1097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335D9D #9D7333
analogous
#33929D #335D9D #3E339D
triadic
#335D9D #9D335D #5D9D33
tetradic
#335D9D #9D3392 #9D7333 #339D3E
square
#335D9D #9D3392 #9D7333 #339D3E
split-complementary
#335D9D #9D3E33 #929D33
monochromatic
#152641 #24426F #335D9D #497AC4 #779CD3

Accessibility & contrast

On white

6.58
#335D9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#335D9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335D9D
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335D9D#FFFFFF#000000##FFFFFF
##335D9D1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4062A0
Deuteranopia (green-blind)
#30599C
Tritanopia (blue-blind)
#006C75
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335d9d;
/* rgb */ color: rgb(51, 93, 157);
/* oklch */ color: oklch(48.1% 0.114 258.6);
Tailwind
colors: {
  custom: {
    50: '#768aba',
    500: '#335d9d',
    950: '#000000',
  },
}
SCSS
$custom: #335d9d;
$custom-light: #768aba;
$custom-dark: #000000;
JSON
{
  "hex": "#335d9d",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 157
  },
  "hsl": {
    "h": 216.226,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48062,
    "c": 0.11381,
    "h": 258.6
  },
  "luminance": 0.10967
}

Semantic roles & 50–950 ramp

primary
#335D9D
secondary
#BB9E70
accent
#A34DDA
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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