#284C8A#284C8A

#284C8A is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.4% C 0.111 H 260.5°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#284C8A
RGBrgb(40, 76, 138)
HSLhsl(218, 55%, 35%)
HSVhsv(218, 71%, 54%)
CMYKcmyk(71%, 44.9%, 0%, 45.9%)
CIE-LABlab(32.82, 9.11, -38.39)
CIE-LCHlch(32.82, 39.45, 283.35°)
OKLaboklab(42.37% -0.0184 -0.1097)
OKLCHoklch(42.37% 0.111 260.5)
XYZxyz(8.0453, 7.4542, 25.0546)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284C8A #8A6628
analogous
#287D8A #284C8A #35288A
triadic
#284C8A #8A284C #4C8A28
tetradic
#284C8A #8A287D #8A6628 #288A35
square
#284C8A #8A287D #8A6628 #288A35
split-complementary
#284C8A #8A3528 #7D8A28
monochromatic
#0C182B #1A325B #284C8A #3666B9 #5D87D0

Accessibility & contrast

On white

8.43
#284C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#284C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284C8A
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284C8A#FFFFFF#000000##FFFFFF
##284C8A1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E528C
Deuteranopia (green-blind)
#1D4989
Tritanopia (blue-blind)
#005A64
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #284c8a;
/* rgb */ color: rgb(40, 76, 138);
/* oklch */ color: oklch(42.4% 0.111 260.5);
Tailwind
colors: {
  custom: {
    50: '#6e7dac',
    500: '#284c8a',
    950: '#000000',
  },
}
SCSS
$custom: #284c8a;
$custom-light: #6e7dac;
$custom-dark: #000000;
JSON
{
  "hex": "#284c8a",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 138
  },
  "hsl": {
    "h": 217.959,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.42371,
    "c": 0.11126,
    "h": 260.5
  },
  "luminance": 0.07455
}

Semantic roles & 50–950 ramp

primary
#284C8A
secondary
#B59359
accent
#A849DE
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #284C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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