#284D81#284D81

#284D81 is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.0% C 0.097 H 257.2°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#284D81
RGBrgb(40, 77, 129)
HSLhsl(215, 53%, 33%)
HSVhsv(215, 69%, 51%)
CMYKcmyk(69%, 40.3%, 0%, 49.4%)
CIE-LABlab(32.58, 4.99, -33.23)
CIE-LCHlch(32.58, 33.60, 278.53°)
OKLaboklab(42% -0.0214 -0.0946)
OKLCHoklch(42% 0.097 257.2)
XYZxyz(7.4900, 7.3431, 21.7873)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284D81 #815C28
analogous
#287981 #284D81 #2F2881
triadic
#284D81 #81284D #4D8128
tetradic
#284D81 #812879 #815C28 #28812F
square
#284D81 #812879 #815C28 #28812F
split-complementary
#284D81 #812F28 #798128
monochromatic
#0B1524 #1A3152 #284D81 #3669B0 #5888CB

Accessibility & contrast

On white

8.51
#284D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #284D81
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284D81#FFFFFF#000000##FFFFFF
##284D811.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365183
Deuteranopia (green-blind)
#284980
Tritanopia (blue-blind)
#005960
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #284d81;
/* rgb */ color: rgb(40, 77, 129);
/* oklch */ color: oklch(42.0% 0.097 257.2);
Tailwind
colors: {
  custom: {
    50: '#6c7ea6',
    500: '#284d81',
    950: '#000000',
  },
}
SCSS
$custom: #284d81;
$custom-light: #6c7ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#284d81",
  "rgb": {
    "r": 40,
    "g": 77,
    "b": 129
  },
  "hsl": {
    "h": 215.056,
    "s": 52.663,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42004,
    "c": 0.09697,
    "h": 257.2
  },
  "luminance": 0.07344
}

Semantic roles & 50–950 ramp

primary
#284D81
secondary
#B08A54
accent
#A04CDC
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #284D81

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

Preview Lab → · Contrast checker → · Palette generator →

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