#335287#335287

#335287 is a dark, moderate blue. Relative luminance 0.085; OKLCH L 44.1% C 0.095 H 260.5°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#335287
RGBrgb(51, 82, 135)
HSLhsl(218, 45%, 36%)
HSVhsv(218, 62%, 53%)
CMYKcmyk(62.2%, 39.3%, 0%, 47.1%)
CIE-LABlab(34.98, 6.07, -33.08)
CIE-LCHlch(34.98, 33.63, 280.41°)
OKLaboklab(44.13% -0.0157 -0.0939)
OKLCHoklch(44.13% 0.095 260.5)
XYZxyz(8.7542, 8.4869, 24.0938)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335287 #876833
analogous
#337C87 #335287 #3E3387
triadic
#335287 #873352 #528733
tetradic
#335287 #87337C #876833 #33873E
square
#335287 #87337C #876833 #33873E
split-complementary
#335287 #873E33 #7C8733
monochromatic
#111C2E #22375B #335287 #446DB3 #6D8EC8

Accessibility & contrast

On white

7.78
#335287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#335287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335287
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335287#FFFFFF#000000##FFFFFF
##3352871.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5689
Deuteranopia (green-blind)
#304F86
Tritanopia (blue-blind)
#005E66
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335287;
/* rgb */ color: rgb(51, 82, 135);
/* oklch */ color: oklch(44.1% 0.095 260.5);
Tailwind
colors: {
  custom: {
    50: '#7382aa',
    500: '#335287',
    950: '#000000',
  },
}
SCSS
$custom: #335287;
$custom-light: #7382aa;
$custom-dark: #000000;
JSON
{
  "hex": "#335287",
  "rgb": {
    "r": 51,
    "g": 82,
    "b": 135
  },
  "hsl": {
    "h": 217.857,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44127,
    "c": 0.09518,
    "h": 260.5
  },
  "luminance": 0.08488
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335287

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

Preview Lab → · Contrast checker → · Palette generator →

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