#284E8A#284E8A

#284E8A is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.8% C 0.109 H 259.2°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#284E8A
RGBrgb(40, 78, 138)
HSLhsl(217, 55%, 35%)
HSVhsv(217, 71%, 54%)
CMYKcmyk(71%, 43.5%, 0%, 45.9%)
CIE-LABlab(33.42, 7.77, -37.42)
CIE-LCHlch(33.42, 38.22, 281.73°)
OKLaboklab(42.84% -0.0204 -0.1069)
OKLCHoklch(42.84% 0.109 259.2)
XYZxyz(8.1853, 7.7340, 25.1013)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284E8A #8A6428
analogous
#287F8A #284E8A #33288A
triadic
#284E8A #8A284E #4E8A28
tetradic
#284E8A #8A287F #8A6428 #288A33
square
#284E8A #8A287F #8A6428 #288A33
split-complementary
#284E8A #8A3328 #7F8A28
monochromatic
#0C182B #1A335B #284E8A #3669B9 #5D89D0

Accessibility & contrast

On white

8.24
#284E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#284E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284E8A
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284E8A#FFFFFF#000000##FFFFFF
##284E8A1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32538C
Deuteranopia (green-blind)
#214A89
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #284e8a;
/* rgb */ color: rgb(40, 78, 138);
/* oklch */ color: oklch(42.8% 0.109 259.2);
Tailwind
colors: {
  custom: {
    50: '#6e7fac',
    500: '#284e8a',
    950: '#000000',
  },
}
SCSS
$custom: #284e8a;
$custom-light: #6e7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#284e8a",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 138
  },
  "hsl": {
    "h": 216.735,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.42837,
    "c": 0.10878,
    "h": 259.2
  },
  "luminance": 0.07735
}

Semantic roles & 50–950 ramp

primary
#284E8A
secondary
#B59159
accent
#A549DE
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #284E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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