#335687#335687

#335687 is a mid, moderate blue. Relative luminance 0.091; OKLCH L 45.1% C 0.091 H 257.0°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#335687
RGBrgb(51, 86, 135)
HSLhsl(215, 45%, 36%)
HSVhsv(215, 62%, 53%)
CMYKcmyk(62.2%, 36.3%, 0%, 47.1%)
CIE-LABlab(36.19, 3.48, -31.16)
CIE-LCHlch(36.19, 31.35, 276.37°)
OKLaboklab(45.07% -0.0203 -0.0882)
OKLCHoklch(45.07% 0.091 257)
XYZxyz(9.0647, 9.1078, 24.1973)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335687 #876433
analogous
#338087 #335687 #3A3387
triadic
#335687 #873356 #568733
tetradic
#335687 #873380 #876433 #33873A
square
#335687 #873380 #876433 #33873A
split-complementary
#335687 #873A33 #808733
monochromatic
#111D2E #223A5B #335687 #4472B3 #6D93C8

Accessibility & contrast

On white

7.44
#335687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#335687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335687
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335687#FFFFFF#000000##FFFFFF
##3356871.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415989
Deuteranopia (green-blind)
#365286
Tritanopia (blue-blind)
#006168
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #335687;
/* rgb */ color: rgb(51, 86, 135);
/* oklch */ color: oklch(45.1% 0.091 257.0);
Tailwind
colors: {
  custom: {
    50: '#7385aa',
    500: '#335687',
    950: '#000000',
  },
}
SCSS
$custom: #335687;
$custom-light: #7385aa;
$custom-dark: #000000;
JSON
{
  "hex": "#335687",
  "rgb": {
    "r": 51,
    "g": 86,
    "b": 135
  },
  "hsl": {
    "h": 215,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45071,
    "c": 0.09053,
    "h": 257
  },
  "luminance": 0.09109
}

Semantic roles & 50–950 ramp

primary
#335687
secondary
#B09166
accent
#9F53D5
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #335687

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

Preview Lab → · Contrast checker → · Palette generator →

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