#335487#335487

#335487 is a dark, moderate blue. Relative luminance 0.088; OKLCH L 44.6% C 0.093 H 258.8°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#335487
RGBrgb(51, 84, 135)
HSLhsl(216, 45%, 36%)
HSVhsv(216, 62%, 53%)
CMYKcmyk(62.2%, 37.8%, 0%, 47.1%)
CIE-LABlab(35.58, 4.77, -32.12)
CIE-LCHlch(35.58, 32.47, 278.45°)
OKLaboklab(44.6% -0.018 -0.0911)
OKLCHoklch(44.6% 0.093 258.8)
XYZxyz(8.9072, 8.7929, 24.1448)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335487 #876633
analogous
#337E87 #335487 #3C3387
triadic
#335487 #873354 #548733
tetradic
#335487 #87337E #876633 #33873C
square
#335487 #87337E #876633 #33873C
split-complementary
#335487 #873C33 #7E8733
monochromatic
#111D2E #22385B #335487 #4470B3 #6D90C8

Accessibility & contrast

On white

7.61
#335487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#335487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335487
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335487#FFFFFF#000000##FFFFFF
##3354871.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5889
Deuteranopia (green-blind)
#335086
Tritanopia (blue-blind)
#005F67
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335487;
/* rgb */ color: rgb(51, 84, 135);
/* oklch */ color: oklch(44.6% 0.093 258.8);
Tailwind
colors: {
  custom: {
    50: '#7383aa',
    500: '#335487',
    950: '#000000',
  },
}
SCSS
$custom: #335487;
$custom-light: #7383aa;
$custom-dark: #000000;
JSON
{
  "hex": "#335487",
  "rgb": {
    "r": 51,
    "g": 84,
    "b": 135
  },
  "hsl": {
    "h": 216.429,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44597,
    "c": 0.09281,
    "h": 258.8
  },
  "luminance": 0.08794
}

Semantic roles & 50–950 ramp

primary
#335487
secondary
#B09366
accent
#A253D5
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #335487

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

Preview Lab → · Contrast checker → · Palette generator →

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