#335897#335897

#335897 is a mid, moderate blue. Relative luminance 0.099; OKLCH L 46.5% C 0.111 H 260.4°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#335897
RGBrgb(51, 88, 151)
HSLhsl(218, 50%, 40%)
HSVhsv(218, 66%, 59%)
CMYKcmyk(66.2%, 41.7%, 0%, 40.8%)
CIE-LABlab(37.69, 8.01, -38.48)
CIE-LCHlch(37.69, 39.31, 281.76°)
OKLaboklab(46.53% -0.0186 -0.1096)
OKLCHoklch(46.53% 0.111 260.4)
XYZxyz(10.4389, 9.9166, 30.6361)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335897 #977233
analogous
#338A97 #335897 #403397
triadic
#335897 #973358 #589733
tetradic
#335897 #97338A #977233 #339740
square
#335897 #97338A #977233 #339740
split-complementary
#335897 #974033 #8A9733
monochromatic
#14233C #243D69 #335897 #4774C1 #7496D0

Accessibility & contrast

On white

7.04
#335897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#335897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335897
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335897#FFFFFF#000000##FFFFFF
##3358971.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5E99
Deuteranopia (green-blind)
#2C5496
Tritanopia (blue-blind)
#006670
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #335897;
/* rgb */ color: rgb(51, 88, 151);
/* oklch */ color: oklch(46.5% 0.111 260.4);
Tailwind
colors: {
  custom: {
    50: '#7586b6',
    500: '#335897',
    950: '#000000',
  },
}
SCSS
$custom: #335897;
$custom-light: #7586b6;
$custom-dark: #000000;
JSON
{
  "hex": "#335897",
  "rgb": {
    "r": 51,
    "g": 88,
    "b": 151
  },
  "hsl": {
    "h": 217.8,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46531,
    "c": 0.11119,
    "h": 260.4
  },
  "luminance": 0.09918
}

Semantic roles & 50–950 ramp

primary
#335897
secondary
#B89D6D
accent
#A64FD9
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335897

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

Preview Lab → · Contrast checker → · Palette generator →

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