#284A8A#284A8A

#284A8A is a dark, moderate blue. Relative luminance 0.072; OKLCH L 41.9% C 0.114 H 261.7°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#284A8A
RGBrgb(40, 74, 138)
HSLhsl(219, 55%, 35%)
HSVhsv(219, 71%, 54%)
CMYKcmyk(71%, 46.4%, 0%, 45.9%)
CIE-LABlab(32.22, 10.45, -39.35)
CIE-LCHlch(32.22, 40.71, 284.88°)
OKLaboklab(41.91% -0.0164 -0.1126)
OKLCHoklch(41.91% 0.114 261.7)
XYZxyz(7.9097, 7.1828, 25.0094)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284A8A #8A6828
analogous
#287B8A #284A8A #37288A
triadic
#284A8A #8A284A #4A8A28
tetradic
#284A8A #8A287B #8A6828 #288A37
square
#284A8A #8A287B #8A6828 #288A37
split-complementary
#284A8A #8A3728 #7B8A28
monochromatic
#0C172B #1A315B #284A8A #3663B9 #5D85D0

Accessibility & contrast

On white

8.62
#284A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#284A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284A8A
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284A8A#FFFFFF#000000##FFFFFF
##284A8A1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A518C
Deuteranopia (green-blind)
#174889
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #284a8a;
/* rgb */ color: rgb(40, 74, 138);
/* oklch */ color: oklch(41.9% 0.114 261.7);
Tailwind
colors: {
  custom: {
    50: '#6e7cac',
    500: '#284a8a',
    950: '#000000',
  },
}
SCSS
$custom: #284a8a;
$custom-light: #6e7cac;
$custom-dark: #000000;
JSON
{
  "hex": "#284a8a",
  "rgb": {
    "r": 40,
    "g": 74,
    "b": 138
  },
  "hsl": {
    "h": 219.184,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.41909,
    "c": 0.11376,
    "h": 261.7
  },
  "luminance": 0.07184
}

Semantic roles & 50–950 ramp

primary
#284A8A
secondary
#B59559
accent
#AB49DE
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #284A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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