#335D9C#335D9C

#335D9C is a mid, moderate blue. Relative luminance 0.109; OKLCH L 48.0% C 0.112 H 258.3°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#335D9C
RGBrgb(51, 93, 156)
HSLhsl(216, 51%, 41%)
HSVhsv(216, 67%, 61%)
CMYKcmyk(67.3%, 40.4%, 0%, 38.8%)
CIE-LABlab(39.47, 6.63, -38.66)
CIE-LCHlch(39.47, 39.22, 279.72°)
OKLaboklab(48% -0.0227 -0.1101)
OKLCHoklch(48% 0.112 258.3)
XYZxyz(11.2782, 10.9317, 32.9617)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335D9C #9C7233
analogous
#33919C #335D9C #3D339C
triadic
#335D9C #9C335D #5D9C33
tetradic
#335D9C #9C3391 #9C7233 #339C3D
square
#335D9C #9C3391 #9C7233 #339C3D
split-complementary
#335D9C #9C3D33 #919C33
monochromatic
#152640 #24426E #335D9C #497AC3 #779CD3

Accessibility & contrast

On white

6.59
#335D9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #335D9C
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335D9C#FFFFFF#000000##FFFFFF
##335D9C1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41629F
Deuteranopia (green-blind)
#31589B
Tritanopia (blue-blind)
#006B75
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335d9c;
/* rgb */ color: rgb(51, 93, 156);
/* oklch */ color: oklch(48.0% 0.112 258.3);
Tailwind
colors: {
  custom: {
    50: '#768ab9',
    500: '#335d9c',
    950: '#000000',
  },
}
SCSS
$custom: #335d9c;
$custom-light: #768ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#335d9c",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 156
  },
  "hsl": {
    "h": 216,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47999,
    "c": 0.1124,
    "h": 258.3
  },
  "luminance": 0.10933
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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