#284E9A#284E9A

#284E9A is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.0% C 0.132 H 262.4°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#284E9A
RGBrgb(40, 78, 154)
HSLhsl(220, 59%, 38%)
HSVhsv(220, 74%, 60%)
CMYKcmyk(74%, 49.4%, 0%, 39.6%)
CIE-LABlab(34.46, 13.96, -45.49)
CIE-LCHlch(34.46, 47.59, 287.06°)
OKLaboklab(43.97% -0.0175 -0.1306)
OKLCHoklch(43.97% 0.132 262.4)
XYZxyz(9.4301, 8.2320, 31.6575)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284E9A #9A7428
analogous
#28879A #284E9A #3B289A
triadic
#284E9A #9A284E #4E9A28
tetradic
#284E9A #9A2887 #9A7428 #289A3B
square
#284E9A #9A2887 #9A7428 #289A3B
split-complementary
#284E9A #9A3B28 #879A28
monochromatic
#0F1D39 #1B3569 #284E9A #3567CA #658BD7

Accessibility & contrast

On white

7.93
#284E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#284E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284E9A
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284E9A#FFFFFF#000000##FFFFFF
##284E9A1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23579D
Deuteranopia (green-blind)
#004C98
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #284e9a;
/* rgb */ color: rgb(40, 78, 154);
/* oklch */ color: oklch(44.0% 0.132 262.4);
Tailwind
colors: {
  custom: {
    50: '#727fb8',
    500: '#284e9a',
    950: '#000000',
  },
}
SCSS
$custom: #284e9a;
$custom-light: #727fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#284e9a",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 154
  },
  "hsl": {
    "h": 220,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.43971,
    "c": 0.13176,
    "h": 262.4
  },
  "luminance": 0.08233
}

Semantic roles & 50–950 ramp

primary
#284E9A
secondary
#BD9E61
accent
#AE46E2
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #284E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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