#284E8B#284E8B

#284E8B is a dark, moderate blue. Relative luminance 0.078; OKLCH L 42.9% C 0.110 H 259.5°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#284E8B
RGBrgb(40, 78, 139)
HSLhsl(217, 55%, 35%)
HSVhsv(217, 71%, 55%)
CMYKcmyk(71.2%, 43.9%, 0%, 45.5%)
CIE-LABlab(33.48, 8.16, -37.94)
CIE-LCHlch(33.48, 38.80, 282.14°)
OKLaboklab(42.91% -0.0202 -0.1084)
OKLCHoklch(42.91% 0.11 259.5)
XYZxyz(8.2580, 7.7631, 25.4843)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284E8B #8B6528
analogous
#287F8B #284E8B #34288B
triadic
#284E8B #8B284E #4E8B28
tetradic
#284E8B #8B287F #8B6528 #288B34
square
#284E8B #8B287F #8B6528 #288B34
split-complementary
#284E8B #8B3428 #7F8B28
monochromatic
#0D192C #1A335B #284E8B #3669BB #5D89D0

Accessibility & contrast

On white

8.23
#284E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #284E8B
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284E8B#FFFFFF#000000##FFFFFF
##284E8B1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31548D
Deuteranopia (green-blind)
#204B8A
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #284e8b;
/* rgb */ color: rgb(40, 78, 139);
/* oklch */ color: oklch(42.9% 0.110 259.5);
Tailwind
colors: {
  custom: {
    50: '#6e7fad',
    500: '#284e8b',
    950: '#000000',
  },
}
SCSS
$custom: #284e8b;
$custom-light: #6e7fad;
$custom-dark: #000000;
JSON
{
  "hex": "#284e8b",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 139
  },
  "hsl": {
    "h": 216.97,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.42905,
    "c": 0.11023,
    "h": 259.5
  },
  "luminance": 0.07764
}

Semantic roles & 50–950 ramp

primary
#284E8B
secondary
#B69259
accent
#A549DF
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #284E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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