#284887#284887

#284887 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.2% C 0.112 H 262.3°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#284887
RGBrgb(40, 72, 135)
HSLhsl(220, 54%, 34%)
HSVhsv(220, 70%, 53%)
CMYKcmyk(70.4%, 46.7%, 0%, 47.1%)
CIE-LABlab(31.43, 10.64, -38.77)
CIE-LCHlch(31.43, 40.20, 285.35°)
OKLaboklab(41.24% -0.0149 -0.1109)
OKLCHoklch(41.24% 0.112 262.3)
XYZxyz(7.5641, 6.8344, 23.8375)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284887 #876728
analogous
#287887 #284887 #372887
triadic
#284887 #872848 #488728
tetradic
#284887 #872878 #876728 #288737
square
#284887 #872878 #876728 #288737
split-complementary
#284887 #873728 #788728
monochromatic
#0C1629 #1A2F58 #284887 #3661B6 #5B82CE

Accessibility & contrast

On white

8.87
#284887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#284887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284887
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284887#FFFFFF#000000##FFFFFF
##2848871.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294F89
Deuteranopia (green-blind)
#174686
Tritanopia (blue-blind)
#005761
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #284887;
/* rgb */ color: rgb(40, 72, 135);
/* oklch */ color: oklch(41.2% 0.112 262.3);
Tailwind
colors: {
  custom: {
    50: '#6e7aaa',
    500: '#284887',
    950: '#000000',
  },
}
SCSS
$custom: #284887;
$custom-light: #6e7aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#284887",
  "rgb": {
    "r": 40,
    "g": 72,
    "b": 135
  },
  "hsl": {
    "h": 219.789,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.41236,
    "c": 0.11192,
    "h": 262.3
  },
  "luminance": 0.06835
}

Semantic roles & 50–950 ramp

primary
#284887
secondary
#B49457
accent
#AC4ADE
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #284887

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

Preview Lab → · Contrast checker → · Palette generator →

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