#335A97#335A97

#335A97 is a mid, moderate blue. Relative luminance 0.103; OKLCH L 47.0% C 0.109 H 259.0°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#335A97
RGBrgb(51, 90, 151)
HSLhsl(217, 50%, 40%)
HSVhsv(217, 66%, 59%)
CMYKcmyk(66.2%, 40.4%, 0%, 40.8%)
CIE-LABlab(38.29, 6.72, -37.54)
CIE-LCHlch(38.29, 38.13, 280.15°)
OKLaboklab(46.99% -0.0207 -0.1068)
OKLCHoklch(46.99% 0.109 259)
XYZxyz(10.6053, 10.2495, 30.6916)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A97 #977033
analogous
#338C97 #335A97 #3E3397
triadic
#335A97 #97335A #5A9733
tetradic
#335A97 #97338C #977033 #33973E
square
#335A97 #97338C #977033 #33973E
split-complementary
#335A97 #973E33 #8C9733
monochromatic
#14233C #243F69 #335A97 #4776C1 #7498D0

Accessibility & contrast

On white

6.88
#335A97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#335A97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335A97
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A97#FFFFFF#000000##FFFFFF
##335A971.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5F99
Deuteranopia (green-blind)
#305696
Tritanopia (blue-blind)
#006871
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #335a97;
/* rgb */ color: rgb(51, 90, 151);
/* oklch */ color: oklch(47.0% 0.109 259.0);
Tailwind
colors: {
  custom: {
    50: '#7588b6',
    500: '#335a97',
    950: '#000000',
  },
}
SCSS
$custom: #335a97;
$custom-light: #7588b6;
$custom-dark: #000000;
JSON
{
  "hex": "#335a97",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 151
  },
  "hsl": {
    "h": 216.6,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46991,
    "c": 0.10882,
    "h": 259
  },
  "luminance": 0.10251
}

Semantic roles & 50–950 ramp

primary
#335A97
secondary
#B89B6D
accent
#A34FD9
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335A97

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

Preview Lab → · Contrast checker → · Palette generator →

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