#284F87#284F87

#284F87 is a dark, moderate blue. Relative luminance 0.078; OKLCH L 42.9% C 0.103 H 257.7°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#284F87
RGBrgb(40, 79, 135)
HSLhsl(215, 54%, 34%)
HSVhsv(215, 70%, 53%)
CMYKcmyk(70.4%, 41.5%, 0%, 47.1%)
CIE-LABlab(33.54, 5.96, -35.39)
CIE-LCHlch(33.54, 35.88, 279.55°)
OKLaboklab(42.87% -0.0221 -0.1009)
OKLCHoklch(42.87% 0.103 257.7)
XYZxyz(8.0426, 7.7915, 23.9970)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F87 #876028
analogous
#287F87 #284F87 #302887
triadic
#284F87 #87284F #4F8728
tetradic
#284F87 #87287F #876028 #288730
square
#284F87 #87287F #876028 #288730
split-complementary
#284F87 #873028 #7F8728
monochromatic
#0C1829 #1A3358 #284F87 #366BB6 #5B8ACE

Accessibility & contrast

On white

8.21
#284F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#284F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284F87
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F87#FFFFFF#000000##FFFFFF
##284F871.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355489
Deuteranopia (green-blind)
#274B86
Tritanopia (blue-blind)
#005C64
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #284f87;
/* rgb */ color: rgb(40, 79, 135);
/* oklch */ color: oklch(42.9% 0.103 257.7);
Tailwind
colors: {
  custom: {
    50: '#6e7faa',
    500: '#284f87',
    950: '#000000',
  },
}
SCSS
$custom: #284f87;
$custom-light: #6e7faa;
$custom-dark: #000000;
JSON
{
  "hex": "#284f87",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 135
  },
  "hsl": {
    "h": 215.368,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.42873,
    "c": 0.10326,
    "h": 257.7
  },
  "luminance": 0.07792
}

Semantic roles & 50–950 ramp

primary
#284F87
secondary
#B48E57
accent
#A14ADE
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #284F87

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

Preview Lab → · Contrast checker → · Palette generator →

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