#284E8D#284E8D

#284E8D is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.0% C 0.113 H 259.9°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#284E8D
RGBrgb(40, 78, 141)
HSLhsl(217, 56%, 35%)
HSVhsv(217, 72%, 55%)
CMYKcmyk(71.6%, 44.7%, 0%, 44.7%)
CIE-LABlab(33.61, 8.93, -38.96)
CIE-LCHlch(33.61, 39.97, 282.91°)
OKLaboklab(43.04% -0.0197 -0.1114)
OKLCHoklch(43.04% 0.113 259.9)
XYZxyz(8.4055, 7.8221, 26.2610)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284E8D #8D6728
analogous
#28808D #284E8D #35288D
triadic
#284E8D #8D284E #4E8D28
tetradic
#284E8D #8D2880 #8D6728 #288D35
square
#284E8D #8D2880 #8D6728 #288D35
split-complementary
#284E8D #8D3528 #808D28
monochromatic
#0D192E #1A345D #284E8D #3668BD #5E89D1

Accessibility & contrast

On white

8.19
#284E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #284E8D
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284E8D#FFFFFF#000000##FFFFFF
##284E8D1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F548F
Deuteranopia (green-blind)
#1E4B8C
Tritanopia (blue-blind)
#005D66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #284e8d;
/* rgb */ color: rgb(40, 78, 141);
/* oklch */ color: oklch(43.0% 0.113 259.9);
Tailwind
colors: {
  custom: {
    50: '#6f7faf',
    500: '#284e8d',
    950: '#000000',
  },
}
SCSS
$custom: #284e8d;
$custom-light: #6f7faf;
$custom-dark: #000000;
JSON
{
  "hex": "#284e8d",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 141
  },
  "hsl": {
    "h": 217.426,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43042,
    "c": 0.11312,
    "h": 259.9
  },
  "luminance": 0.07823
}

Semantic roles & 50–950 ramp

primary
#284E8D
secondary
#B7945A
accent
#A749DF
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #284E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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