#335997#335997

#335997 is a mid, moderate blue. Relative luminance 0.101; OKLCH L 46.8% C 0.110 H 259.7°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#335997
RGBrgb(51, 89, 151)
HSLhsl(217, 50%, 40%)
HSVhsv(217, 66%, 59%)
CMYKcmyk(66.2%, 41.1%, 0%, 40.8%)
CIE-LABlab(37.99, 7.37, -38.01)
CIE-LCHlch(37.99, 38.72, 280.97°)
OKLaboklab(46.76% -0.0196 -0.1082)
OKLCHoklch(46.76% 0.11 259.7)
XYZxyz(10.5215, 10.0819, 30.6637)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335997 #977133
analogous
#338B97 #335997 #3F3397
triadic
#335997 #973359 #599733
tetradic
#335997 #97338B #977133 #33973F
square
#335997 #97338B #977133 #33973F
split-complementary
#335997 #973F33 #8B9733
monochromatic
#14233C #243E69 #335997 #4775C1 #7497D0

Accessibility & contrast

On white

6.96
#335997 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#335997 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335997
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335997#FFFFFF#000000##FFFFFF
##3359971.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5E99
Deuteranopia (green-blind)
#2E5596
Tritanopia (blue-blind)
#006770
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #335997;
/* rgb */ color: rgb(51, 89, 151);
/* oklch */ color: oklch(46.8% 0.110 259.7);
Tailwind
colors: {
  custom: {
    50: '#7587b6',
    500: '#335997',
    950: '#000000',
  },
}
SCSS
$custom: #335997;
$custom-light: #7587b6;
$custom-dark: #000000;
JSON
{
  "hex": "#335997",
  "rgb": {
    "r": 51,
    "g": 89,
    "b": 151
  },
  "hsl": {
    "h": 217.2,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46761,
    "c": 0.11,
    "h": 259.7
  },
  "luminance": 0.10083
}

Semantic roles & 50–950 ramp

primary
#335997
secondary
#B89C6D
accent
#A44FD9
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335997

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

Preview Lab → · Contrast checker → · Palette generator →

#335997 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva