#335B9D#335B9D

#335B9D is a mid, moderate blue. Relative luminance 0.106; OKLCH L 47.6% C 0.116 H 259.9°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#335B9D
RGBrgb(51, 91, 157)
HSLhsl(217, 51%, 41%)
HSVhsv(217, 68%, 62%)
CMYKcmyk(67.5%, 42%, 0%, 38.4%)
CIE-LABlab(38.93, 8.28, -40.11)
CIE-LCHlch(38.93, 40.96, 281.67°)
OKLaboklab(47.6% -0.0204 -0.1144)
OKLCHoklch(47.6% 0.116 259.9)
XYZxyz(11.1900, 10.6192, 33.3517)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B9D #9D7533
analogous
#33909D #335B9D #40339D
triadic
#335B9D #9D335B #5B9D33
tetradic
#335B9D #9D3390 #9D7533 #339D40
square
#335B9D #9D3390 #9D7533 #339D40
split-complementary
#335B9D #9D4033 #909D33
monochromatic
#152541 #24406F #335B9D #4978C4 #779AD3

Accessibility & contrast

On white

6.72
#335B9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#335B9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335B9D
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B9D#FFFFFF#000000##FFFFFF
##335B9D1.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D61A0
Deuteranopia (green-blind)
#2C579C
Tritanopia (blue-blind)
#006A74
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #335b9d;
/* rgb */ color: rgb(51, 91, 157);
/* oklch */ color: oklch(47.6% 0.116 259.9);
Tailwind
colors: {
  custom: {
    50: '#7689ba',
    500: '#335b9d',
    950: '#000000',
  },
}
SCSS
$custom: #335b9d;
$custom-light: #7689ba;
$custom-dark: #000000;
JSON
{
  "hex": "#335b9d",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 157
  },
  "hsl": {
    "h": 217.358,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47604,
    "c": 0.11617,
    "h": 259.9
  },
  "luminance": 0.1062
}

Semantic roles & 50–950 ramp

primary
#335B9D
secondary
#BB9F70
accent
#A54DDA
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #335B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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