#335B9C#335B9C

#335B9C is a mid, moderate blue. Relative luminance 0.106; OKLCH L 47.5% C 0.115 H 259.6°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#335B9C
RGBrgb(51, 91, 156)
HSLhsl(217, 51%, 41%)
HSVhsv(217, 67%, 61%)
CMYKcmyk(67.3%, 41.7%, 0%, 38.8%)
CIE-LABlab(38.87, 7.91, -39.60)
CIE-LCHlch(38.87, 40.39, 281.30°)
OKLaboklab(47.54% -0.0206 -0.1129)
OKLCHoklch(47.54% 0.115 259.6)
XYZxyz(11.1049, 10.5852, 32.9040)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B9C #9C7433
analogous
#338F9C #335B9C #3F339C
triadic
#335B9C #9C335B #5B9C33
tetradic
#335B9C #9C338F #9C7433 #339C3F
square
#335B9C #9C338F #9C7433 #339C3F
split-complementary
#335B9C #9C3F33 #8F9C33
monochromatic
#152540 #24406E #335B9C #4977C3 #779AD3

Accessibility & contrast

On white

6.74
#335B9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #335B9C
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B9C#FFFFFF#000000##FFFFFF
##335B9C1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #335b9c;
/* rgb */ color: rgb(51, 91, 156);
/* oklch */ color: oklch(47.5% 0.115 259.6);
Tailwind
colors: {
  custom: {
    50: '#7689b9',
    500: '#335b9c',
    950: '#000000',
  },
}
SCSS
$custom: #335b9c;
$custom-light: #7689b9;
$custom-dark: #000000;
JSON
{
  "hex": "#335b9c",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 156
  },
  "hsl": {
    "h": 217.143,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4754,
    "c": 0.11475,
    "h": 259.6
  },
  "luminance": 0.10586
}

Semantic roles & 50–950 ramp

primary
#335B9C
secondary
#BB9E70
accent
#A54EDA
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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