#335087#335087

#335087 is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.7% C 0.098 H 262.1°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#335087
RGBrgb(51, 80, 135)
HSLhsl(219, 45%, 36%)
HSVhsv(219, 62%, 53%)
CMYKcmyk(62.2%, 40.7%, 0%, 47.1%)
CIE-LABlab(34.37, 7.38, -34.03)
CIE-LCHlch(34.37, 34.83, 282.24°)
OKLaboklab(43.66% -0.0134 -0.0967)
OKLCHoklch(43.66% 0.098 262.1)
XYZxyz(8.6056, 8.1897, 24.0442)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335087 #876A33
analogous
#337A87 #335087 #403387
triadic
#335087 #873350 #508733
tetradic
#335087 #87337A #876A33 #338740
square
#335087 #87337A #876A33 #338740
split-complementary
#335087 #874033 #7A8733
monochromatic
#111B2E #22365B #335087 #446AB3 #6D8CC8

Accessibility & contrast

On white

7.96
#335087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#335087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335087
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335087#FFFFFF#000000##FFFFFF
##3350871.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385589
Deuteranopia (green-blind)
#2D4D86
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335087;
/* rgb */ color: rgb(51, 80, 135);
/* oklch */ color: oklch(43.7% 0.098 262.1);
Tailwind
colors: {
  custom: {
    50: '#7380aa',
    500: '#335087',
    950: '#000000',
  },
}
SCSS
$custom: #335087;
$custom-light: #7380aa;
$custom-dark: #000000;
JSON
{
  "hex": "#335087",
  "rgb": {
    "r": 51,
    "g": 80,
    "b": 135
  },
  "hsl": {
    "h": 219.286,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4366,
    "c": 0.09762,
    "h": 262.1
  },
  "luminance": 0.0819
}

Semantic roles & 50–950 ramp

primary
#335087
secondary
#B09666
accent
#A853D5
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #335087

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

Preview Lab → · Contrast checker → · Palette generator →

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