#284D8F#284D8F

#284D8F is a dark, moderate blue. Relative luminance 0.077; OKLCH L 43.0% C 0.117 H 261.0°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#284D8F
RGBrgb(40, 77, 143)
HSLhsl(218, 56%, 36%)
HSVhsv(218, 72%, 56%)
CMYKcmyk(72%, 46.2%, 0%, 43.9%)
CIE-LABlab(33.44, 10.37, -40.46)
CIE-LCHlch(33.44, 41.76, 284.38°)
OKLaboklab(42.95% -0.0184 -0.1158)
OKLCHoklch(42.95% 0.117 261)
XYZxyz(8.4851, 7.7412, 27.0283)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284D8F #8F6A28
analogous
#28808F #284D8F #37288F
triadic
#284D8F #8F284D #4D8F28
tetradic
#284D8F #8F2880 #8F6A28 #288F37
square
#284D8F #8F2880 #8F6A28 #288F37
split-complementary
#284D8F #8F3728 #808F28
monochromatic
#0D192F #1B335F #284D8F #3567BF #5F88D2

Accessibility & contrast

On white

8.24
#284D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #284D8F
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284D8F#FFFFFF#000000##FFFFFF
##284D8F1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5492
Deuteranopia (green-blind)
#184A8E
Tritanopia (blue-blind)
#005C67
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #284d8f;
/* rgb */ color: rgb(40, 77, 143);
/* oklch */ color: oklch(43.0% 0.117 261.0);
Tailwind
colors: {
  custom: {
    50: '#6f7eb0',
    500: '#284d8f',
    950: '#000000',
  },
}
SCSS
$custom: #284d8f;
$custom-light: #6f7eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#284d8f",
  "rgb": {
    "r": 40,
    "g": 77,
    "b": 143
  },
  "hsl": {
    "h": 218.447,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42951,
    "c": 0.11725,
    "h": 261
  },
  "luminance": 0.07742
}

Semantic roles & 50–950 ramp

primary
#284D8F
secondary
#B8965B
accent
#A948E0
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #284D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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