#335C9E#335C9E

#335C9E is a mid, moderate blue. Relative luminance 0.108; OKLCH L 47.9% C 0.116 H 259.5°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#335C9E
RGBrgb(51, 92, 158)
HSLhsl(217, 51%, 41%)
HSVhsv(217, 68%, 62%)
CMYKcmyk(67.7%, 41.8%, 0%, 38%)
CIE-LABlab(39.29, 8.01, -40.14)
CIE-LCHlch(39.29, 40.93, 281.28°)
OKLaboklab(47.9% -0.0212 -0.1144)
OKLCHoklch(47.9% 0.116 259.5)
XYZxyz(11.3617, 10.8256, 33.8319)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C9E #9E7533
analogous
#33919E #335C9E #3F339E
triadic
#335C9E #9E335C #5C9E33
tetradic
#335C9E #9E3391 #9E7533 #339E3F
square
#335C9E #9E3391 #9E7533 #339E3F
split-complementary
#335C9E #9E3F33 #919E33
monochromatic
#152641 #244170 #335C9E #4A79C4 #789BD3

Accessibility & contrast

On white

6.63
#335C9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#335C9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335C9E
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C9E#FFFFFF#000000##FFFFFF
##335C9E1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E62A1
Deuteranopia (green-blind)
#2D589D
Tritanopia (blue-blind)
#006B75
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335c9e;
/* rgb */ color: rgb(51, 92, 158);
/* oklch */ color: oklch(47.9% 0.116 259.5);
Tailwind
colors: {
  custom: {
    50: '#7789bb',
    500: '#335c9e',
    950: '#000000',
  },
}
SCSS
$custom: #335c9e;
$custom-light: #7789bb;
$custom-dark: #000000;
JSON
{
  "hex": "#335c9e",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 158
  },
  "hsl": {
    "h": 217.009,
    "s": 51.196,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47897,
    "c": 0.11639,
    "h": 259.5
  },
  "luminance": 0.10827
}

Semantic roles & 50–950 ramp

primary
#335C9E
secondary
#BC9F71
accent
#A44DDB
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #335C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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