#284D8E#284D8E

#284D8E is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.9% C 0.116 H 260.8°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#284D8E
RGBrgb(40, 77, 142)
HSLhsl(218, 56%, 36%)
HSVhsv(218, 72%, 56%)
CMYKcmyk(71.8%, 45.8%, 0%, 44.3%)
CIE-LABlab(33.37, 9.98, -39.95)
CIE-LCHlch(33.37, 41.18, 284.03°)
OKLaboklab(42.88% -0.0186 -0.1143)
OKLCHoklch(42.88% 0.116 260.8)
XYZxyz(8.4097, 7.7110, 26.6311)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284D8E #8E6928
analogous
#28808E #284D8E #36288E
triadic
#284D8E #8E284D #4D8E28
tetradic
#284D8E #8E2880 #8E6928 #288E36
square
#284D8E #8E2880 #8E6928 #288E36
split-complementary
#284D8E #8E3628 #808E28
monochromatic
#0D192F #1B335E #284D8E #3567BE #5F88D2

Accessibility & contrast

On white

8.26
#284D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#284D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284D8E
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284D8E#FFFFFF#000000##FFFFFF
##284D8E1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5490
Deuteranopia (green-blind)
#194A8D
Tritanopia (blue-blind)
#005C66
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #284d8e;
/* rgb */ color: rgb(40, 77, 142);
/* oklch */ color: oklch(42.9% 0.116 260.8);
Tailwind
colors: {
  custom: {
    50: '#6f7eaf',
    500: '#284d8e',
    950: '#000000',
  },
}
SCSS
$custom: #284d8e;
$custom-light: #6f7eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#284d8e",
  "rgb": {
    "r": 40,
    "g": 77,
    "b": 142
  },
  "hsl": {
    "h": 218.235,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4288,
    "c": 0.1158,
    "h": 260.8
  },
  "luminance": 0.07712
}

Semantic roles & 50–950 ramp

primary
#284D8E
secondary
#B7965B
accent
#A948DF
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #284D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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