#284E9D#284E9D

#284E9D is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.2% C 0.136 H 262.8°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#284E9D
RGBrgb(40, 78, 157)
HSLhsl(221, 59%, 39%)
HSVhsv(221, 75%, 62%)
CMYKcmyk(74.5%, 50.3%, 0%, 38.4%)
CIE-LABlab(34.67, 15.13, -46.97)
CIE-LCHlch(34.67, 49.35, 287.85°)
OKLaboklab(44.19% -0.0171 -0.1349)
OKLCHoklch(44.19% 0.136 262.8)
XYZxyz(9.6831, 8.3332, 32.9899)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284E9D #9D7728
analogous
#28889D #284E9D #3C289D
triadic
#284E9D #9D284E #4E9D28
tetradic
#284E9D #9D2888 #9D7728 #289D3C
square
#284E9D #9D2888 #9D7728 #289D3C
split-complementary
#284E9D #9D3C28 #889D28
monochromatic
#0F1E3B #1C366C #284E9D #3667CC #678CD8

Accessibility & contrast

On white

7.87
#284E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#284E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284E9D
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284E9D#FFFFFF#000000##FFFFFF
##284E9D1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2057A0
Deuteranopia (green-blind)
#004C9B
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #284e9d;
/* rgb */ color: rgb(40, 78, 157);
/* oklch */ color: oklch(44.2% 0.136 262.8);
Tailwind
colors: {
  custom: {
    50: '#727fba',
    500: '#284e9d',
    950: '#000000',
  },
}
SCSS
$custom: #284e9d;
$custom-light: #727fba;
$custom-dark: #000000;
JSON
{
  "hex": "#284e9d",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 157
  },
  "hsl": {
    "h": 220.513,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.44194,
    "c": 0.13602,
    "h": 262.8
  },
  "luminance": 0.08334
}

Semantic roles & 50–950 ramp

primary
#284E9D
secondary
#BEA162
accent
#AF45E3
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #284E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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