#284D8A#284D8A

#284D8A is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.6% C 0.110 H 259.9°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#284D8A
RGBrgb(40, 77, 138)
HSLhsl(217, 55%, 35%)
HSVhsv(217, 71%, 54%)
CMYKcmyk(71%, 44.2%, 0%, 45.9%)
CIE-LABlab(33.12, 8.44, -37.90)
CIE-LCHlch(33.12, 38.83, 282.55°)
OKLaboklab(42.6% -0.0194 -0.1083)
OKLCHoklch(42.6% 0.11 259.9)
XYZxyz(8.1147, 7.5930, 25.0778)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284D8A #8A6528
analogous
#287E8A #284D8A #34288A
triadic
#284D8A #8A284D #4D8A28
tetradic
#284D8A #8A287E #8A6528 #288A34
square
#284D8A #8A287E #8A6528 #288A34
split-complementary
#284D8A #8A3428 #7E8A28
monochromatic
#0C182B #1A335B #284D8A #3667B9 #5D88D0

Accessibility & contrast

On white

8.34
#284D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#284D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284D8A
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284D8A#FFFFFF#000000##FFFFFF
##284D8A1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30538C
Deuteranopia (green-blind)
#1F4A89
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #284d8a;
/* rgb */ color: rgb(40, 77, 138);
/* oklch */ color: oklch(42.6% 0.110 259.9);
Tailwind
colors: {
  custom: {
    50: '#6e7eac',
    500: '#284d8a',
    950: '#000000',
  },
}
SCSS
$custom: #284d8a;
$custom-light: #6e7eac;
$custom-dark: #000000;
JSON
{
  "hex": "#284d8a",
  "rgb": {
    "r": 40,
    "g": 77,
    "b": 138
  },
  "hsl": {
    "h": 217.347,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.42603,
    "c": 0.11002,
    "h": 259.9
  },
  "luminance": 0.07594
}

Semantic roles & 50–950 ramp

primary
#284D8A
secondary
#B59259
accent
#A649DE
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #284D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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