#335699#335699

#335699 is a mid, moderate blue. Relative luminance 0.097; OKLCH L 46.2% C 0.117 H 262.1°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#335699
RGBrgb(51, 86, 153)
HSLhsl(219, 50%, 40%)
HSVhsv(219, 67%, 60%)
CMYKcmyk(66.7%, 43.8%, 0%, 40%)
CIE-LABlab(37.22, 10.06, -40.44)
CIE-LCHlch(37.22, 41.67, 283.97°)
OKLaboklab(46.21% -0.0161 -0.1154)
OKLCHoklch(46.21% 0.117 262.1)
XYZxyz(10.4408, 9.6583, 31.4448)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335699 #997633
analogous
#338999 #335699 #433399
triadic
#335699 #993356 #569933
tetradic
#335699 #993389 #997633 #339943
square
#335699 #993389 #997633 #339943
split-complementary
#335699 #994333 #899933
monochromatic
#14223D #243C6B #335699 #4771C2 #7595D1

Accessibility & contrast

On white

7.16
#335699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#335699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335699
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335699#FFFFFF#000000##FFFFFF
##3356991.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375D9C
Deuteranopia (green-blind)
#265398
Tritanopia (blue-blind)
#006570
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #335699;
/* rgb */ color: rgb(51, 86, 153);
/* oklch */ color: oklch(46.2% 0.117 262.1);
Tailwind
colors: {
  custom: {
    50: '#7685b7',
    500: '#335699',
    950: '#000000',
  },
}
SCSS
$custom: #335699;
$custom-light: #7685b7;
$custom-dark: #000000;
JSON
{
  "hex": "#335699",
  "rgb": {
    "r": 51,
    "g": 86,
    "b": 153
  },
  "hsl": {
    "h": 219.412,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.46206,
    "c": 0.1165,
    "h": 262.1
  },
  "luminance": 0.09659
}

Semantic roles & 50–950 ramp

primary
#335699
secondary
#B9A06E
accent
#AA4EDA
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335699

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

Preview Lab → · Contrast checker → · Palette generator →

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