#284F8D#284F8D

#284F8D is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.3% C 0.112 H 259.3°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#284F8D
RGBrgb(40, 79, 141)
HSLhsl(217, 56%, 35%)
HSVhsv(217, 72%, 55%)
CMYKcmyk(71.6%, 44%, 0%, 44.7%)
CIE-LABlab(33.91, 8.26, -38.48)
CIE-LCHlch(33.91, 39.36, 282.12°)
OKLaboklab(43.27% -0.0207 -0.1099)
OKLCHoklch(43.27% 0.112 259.3)
XYZxyz(8.4770, 7.9653, 26.2848)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F8D #8D6628
analogous
#28818D #284F8D #34288D
triadic
#284F8D #8D284F #4F8D28
tetradic
#284F8D #8D2881 #8D6628 #288D34
square
#284F8D #8D2881 #8D6628 #288D34
split-complementary
#284F8D #8D3428 #818D28
monochromatic
#0D1A2E #1A345D #284F8D #366ABD #5E8BD1

Accessibility & contrast

On white

8.10
#284F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#284F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284F8D
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F8D#FFFFFF#000000##FFFFFF
##284F8D1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31558F
Deuteranopia (green-blind)
#204B8C
Tritanopia (blue-blind)
#005D67
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #284f8d;
/* rgb */ color: rgb(40, 79, 141);
/* oklch */ color: oklch(43.3% 0.112 259.3);
Tailwind
colors: {
  custom: {
    50: '#6f7faf',
    500: '#284f8d',
    950: '#000000',
  },
}
SCSS
$custom: #284f8d;
$custom-light: #6f7faf;
$custom-dark: #000000;
JSON
{
  "hex": "#284f8d",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 141
  },
  "hsl": {
    "h": 216.832,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43274,
    "c": 0.11189,
    "h": 259.3
  },
  "luminance": 0.07966
}

Semantic roles & 50–950 ramp

primary
#284F8D
secondary
#B7935A
accent
#A549DF
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #284F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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