#335187#335187

#335187 is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.9% C 0.096 H 261.3°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#335187
RGBrgb(51, 81, 135)
HSLhsl(219, 45%, 36%)
HSVhsv(219, 62%, 53%)
CMYKcmyk(62.2%, 40%, 0%, 47.1%)
CIE-LABlab(34.68, 6.73, -33.56)
CIE-LCHlch(34.68, 34.22, 281.34°)
OKLaboklab(43.89% -0.0145 -0.0953)
OKLCHoklch(43.89% 0.096 261.3)
XYZxyz(8.6793, 8.3372, 24.0688)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335187 #876933
analogous
#337B87 #335187 #3F3387
triadic
#335187 #873351 #518733
tetradic
#335187 #87337B #876933 #33873F
square
#335187 #87337B #876933 #33873F
split-complementary
#335187 #873F33 #7B8733
monochromatic
#111C2E #22365B #335187 #446CB3 #6D8DC8

Accessibility & contrast

On white

7.87
#335187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#335187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335187
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335187#FFFFFF#000000##FFFFFF
##3351871.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5689
Deuteranopia (green-blind)
#2E4E86
Tritanopia (blue-blind)
#005D65
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335187;
/* rgb */ color: rgb(51, 81, 135);
/* oklch */ color: oklch(43.9% 0.096 261.3);
Tailwind
colors: {
  custom: {
    50: '#7381aa',
    500: '#335187',
    950: '#000000',
  },
}
SCSS
$custom: #335187;
$custom-light: #7381aa;
$custom-dark: #000000;
JSON
{
  "hex": "#335187",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 135
  },
  "hsl": {
    "h": 218.571,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.43893,
    "c": 0.09639,
    "h": 261.3
  },
  "luminance": 0.08338
}

Semantic roles & 50–950 ramp

primary
#335187
secondary
#B09566
accent
#A653D5
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #335187

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

Preview Lab → · Contrast checker → · Palette generator →

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