#284D87#284D87

#284D87 is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.4% C 0.106 H 259.1°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#284D87
RGBrgb(40, 77, 135)
HSLhsl(217, 54%, 34%)
HSVhsv(217, 70%, 53%)
CMYKcmyk(70.4%, 43%, 0%, 47.1%)
CIE-LABlab(32.94, 7.28, -36.36)
CIE-LCHlch(32.94, 37.08, 281.33°)
OKLaboklab(42.4% -0.02 -0.1037)
OKLCHoklch(42.4% 0.106 259.1)
XYZxyz(7.9006, 7.5073, 23.9497)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284D87 #876228
analogous
#287D87 #284D87 #332887
triadic
#284D87 #87284D #4D8728
tetradic
#284D87 #87287D #876228 #288733
square
#284D87 #87287D #876228 #288733
split-complementary
#284D87 #873328 #7D8728
monochromatic
#0C1729 #1A3258 #284D87 #3668B6 #5B88CE

Accessibility & contrast

On white

8.39
#284D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#284D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284D87
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284D87#FFFFFF#000000##FFFFFF
##284D871.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325289
Deuteranopia (green-blind)
#234986
Tritanopia (blue-blind)
#005A63
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #284d87;
/* rgb */ color: rgb(40, 77, 135);
/* oklch */ color: oklch(42.4% 0.106 259.1);
Tailwind
colors: {
  custom: {
    50: '#6e7eaa',
    500: '#284d87',
    950: '#000000',
  },
}
SCSS
$custom: #284d87;
$custom-light: #6e7eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#284d87",
  "rgb": {
    "r": 40,
    "g": 77,
    "b": 135
  },
  "hsl": {
    "h": 216.632,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.424,
    "c": 0.10566,
    "h": 259.1
  },
  "luminance": 0.07508
}

Semantic roles & 50–950 ramp

primary
#284D87
secondary
#B49057
accent
#A44ADE
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #284D87

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

Preview Lab → · Contrast checker → · Palette generator →

#284D87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva