#284D8D#284D8D

#284D8D is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.8% C 0.114 H 260.6°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#284D8D
RGBrgb(40, 77, 141)
HSLhsl(218, 56%, 35%)
HSVhsv(218, 72%, 55%)
CMYKcmyk(71.6%, 45.4%, 0%, 44.7%)
CIE-LABlab(33.31, 9.60, -39.44)
CIE-LCHlch(33.31, 40.59, 283.68°)
OKLaboklab(42.81% -0.0188 -0.1128)
OKLCHoklch(42.81% 0.114 260.6)
XYZxyz(8.3349, 7.6811, 26.2375)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284D8D #8D6828
analogous
#287F8D #284D8D #36288D
triadic
#284D8D #8D284D #4D8D28
tetradic
#284D8D #8D287F #8D6828 #288D36
square
#284D8D #8D287F #8D6828 #288D36
split-complementary
#284D8D #8D3628 #7F8D28
monochromatic
#0D192E #1A335D #284D8D #3667BD #5E88D1

Accessibility & contrast

On white

8.28
#284D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #284D8D
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284D8D#FFFFFF#000000##FFFFFF
##284D8D1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E538F
Deuteranopia (green-blind)
#1B4A8C
Tritanopia (blue-blind)
#005C66
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #284d8d;
/* rgb */ color: rgb(40, 77, 141);
/* oklch */ color: oklch(42.8% 0.114 260.6);
Tailwind
colors: {
  custom: {
    50: '#6f7eaf',
    500: '#284d8d',
    950: '#000000',
  },
}
SCSS
$custom: #284d8d;
$custom-light: #6f7eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#284d8d",
  "rgb": {
    "r": 40,
    "g": 77,
    "b": 141
  },
  "hsl": {
    "h": 218.02,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42811,
    "c": 0.11436,
    "h": 260.6
  },
  "luminance": 0.07682
}

Semantic roles & 50–950 ramp

primary
#284D8D
secondary
#B7955A
accent
#A849DF
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #284D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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