#284C87#284C87

#284C87 is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.2% C 0.107 H 259.8°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#284C87
RGBrgb(40, 76, 135)
HSLhsl(217, 54%, 34%)
HSVhsv(217, 70%, 53%)
CMYKcmyk(70.4%, 43.7%, 0%, 47.1%)
CIE-LABlab(32.63, 7.95, -36.84)
CIE-LCHlch(32.63, 37.69, 282.18°)
OKLaboklab(42.17% -0.019 -0.1052)
OKLCHoklch(42.17% 0.107 259.8)
XYZxyz(7.8311, 7.3685, 23.9265)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284C87 #876328
analogous
#287C87 #284C87 #332887
triadic
#284C87 #87284C #4C8728
tetradic
#284C87 #87287C #876328 #288733
square
#284C87 #87287C #876328 #288733
split-complementary
#284C87 #873328 #7C8728
monochromatic
#0C1729 #1A3158 #284C87 #3667B6 #5B87CE

Accessibility & contrast

On white

8.49
#284C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#284C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284C87
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284C87#FFFFFF#000000##FFFFFF
##284C871.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #284c87;
/* rgb */ color: rgb(40, 76, 135);
/* oklch */ color: oklch(42.2% 0.107 259.8);
Tailwind
colors: {
  custom: {
    50: '#6e7daa',
    500: '#284c87',
    950: '#000000',
  },
}
SCSS
$custom: #284c87;
$custom-light: #6e7daa;
$custom-dark: #000000;
JSON
{
  "hex": "#284c87",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 135
  },
  "hsl": {
    "h": 217.263,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.42165,
    "c": 0.10689,
    "h": 259.8
  },
  "luminance": 0.07369
}

Semantic roles & 50–950 ramp

primary
#284C87
secondary
#B49157
accent
#A64ADE
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #284C87

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

Preview Lab → · Contrast checker → · Palette generator →

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