#335C97#335C97

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

Color values

HEX#335C97
RGBrgb(51, 92, 151)
HSLhsl(215, 50%, 40%)
HSVhsv(215, 66%, 59%)
CMYKcmyk(66.2%, 39.1%, 0%, 40.8%)
CIE-LABlab(38.88, 5.43, -36.59)
CIE-LCHlch(38.88, 36.99, 278.44°)
OKLaboklab(47.46% -0.0228 -0.104)
OKLCHoklch(47.46% 0.107 257.6)
XYZxyz(10.7763, 10.5914, 30.7486)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C97 #976E33
analogous
#338E97 #335C97 #3C3397
triadic
#335C97 #97335C #5C9733
tetradic
#335C97 #97338E #976E33 #33973C
square
#335C97 #97338E #976E33 #33973C
split-complementary
#335C97 #973C33 #8E9733
monochromatic
#14243C #244069 #335C97 #4779C1 #749AD0

Accessibility & contrast

On white

6.73
#335C97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #335C97
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C97#FFFFFF#000000##FFFFFF
##335C971.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#426199
Deuteranopia (green-blind)
#345796
Tritanopia (blue-blind)
#006A72
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #335c97;
/* rgb */ color: rgb(51, 92, 151);
/* oklch */ color: oklch(47.5% 0.106 257.6);
Tailwind
colors: {
  custom: {
    50: '#7589b6',
    500: '#335c97',
    950: '#000000',
  },
}
SCSS
$custom: #335c97;
$custom-light: #7589b6;
$custom-dark: #000000;
JSON
{
  "hex": "#335c97",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 151
  },
  "hsl": {
    "h": 215.4,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.47455,
    "c": 0.1065,
    "h": 257.6
  },
  "luminance": 0.10592
}

Semantic roles & 50–950 ramp

primary
#335C97
secondary
#B89A6D
accent
#A04FD9
background
#F7F8FB
surface
#EDF0F6
border
#C8CBD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335C97

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

Preview Lab → · Contrast checker → · Palette generator →

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