#284E8E#284E8E

#284E8E is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.1% C 0.115 H 260.2°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#284E8E
RGBrgb(40, 78, 142)
HSLhsl(218, 56%, 36%)
HSVhsv(218, 72%, 56%)
CMYKcmyk(71.8%, 45.1%, 0%, 44.3%)
CIE-LABlab(33.67, 9.32, -39.47)
CIE-LCHlch(33.67, 40.55, 283.28°)
OKLaboklab(43.11% -0.0195 -0.1129)
OKLCHoklch(43.11% 0.115 260.2)
XYZxyz(8.4802, 7.8520, 26.6546)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284E8E #8E6828
analogous
#28818E #284E8E #35288E
triadic
#284E8E #8E284E #4E8E28
tetradic
#284E8E #8E2881 #8E6828 #288E35
square
#284E8E #8E2881 #8E6828 #288E35
split-complementary
#284E8E #8E3528 #818E28
monochromatic
#0D1A2F #1B345E #284E8E #3568BE #5F8AD2

Accessibility & contrast

On white

8.17
#284E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#284E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284E8E
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284E8E#FFFFFF#000000##FFFFFF
##284E8E1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5490
Deuteranopia (green-blind)
#1C4B8D
Tritanopia (blue-blind)
#005D67
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #284e8e;
/* rgb */ color: rgb(40, 78, 142);
/* oklch */ color: oklch(43.1% 0.115 260.2);
Tailwind
colors: {
  custom: {
    50: '#6f7faf',
    500: '#284e8e',
    950: '#000000',
  },
}
SCSS
$custom: #284e8e;
$custom-light: #6f7faf;
$custom-dark: #000000;
JSON
{
  "hex": "#284e8e",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 142
  },
  "hsl": {
    "h": 217.647,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.43111,
    "c": 0.11456,
    "h": 260.2
  },
  "luminance": 0.07853
}

Semantic roles & 50–950 ramp

primary
#284E8E
secondary
#B7955B
accent
#A748DF
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #284E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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