#284F8E#284F8E

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

Color values

HEX#284F8E
RGBrgb(40, 79, 142)
HSLhsl(217, 56%, 36%)
HSVhsv(217, 72%, 56%)
CMYKcmyk(71.8%, 44.4%, 0%, 44.3%)
CIE-LABlab(33.97, 8.65, -38.99)
CIE-LCHlch(33.97, 39.94, 282.51°)
OKLaboklab(43.34% -0.0205 -0.1114)
OKLCHoklch(43.34% 0.113 259.6)
XYZxyz(8.5518, 7.9952, 26.6785)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F8E #8E6728
analogous
#28828E #284F8E #34288E
triadic
#284F8E #8E284F #4F8E28
tetradic
#284F8E #8E2882 #8E6728 #288E34
square
#284F8E #8E2882 #8E6728 #288E34
split-complementary
#284F8E #8E3428 #828E28
monochromatic
#0D1A2F #1B345E #284F8E #356ABE #5F8BD2

Accessibility & contrast

On white

8.08
#284F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#284F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284F8E
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F8E#FFFFFF#000000##FFFFFF
##284F8E1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305590
Deuteranopia (green-blind)
#1F4C8D
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #284f8e;
/* rgb */ color: rgb(40, 79, 142);
/* oklch */ color: oklch(43.3% 0.113 259.6);
Tailwind
colors: {
  custom: {
    50: '#6f7faf',
    500: '#284f8e',
    950: '#000000',
  },
}
SCSS
$custom: #284f8e;
$custom-light: #6f7faf;
$custom-dark: #000000;
JSON
{
  "hex": "#284f8e",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 142
  },
  "hsl": {
    "h": 217.059,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.43343,
    "c": 0.11333,
    "h": 259.6
  },
  "luminance": 0.07996
}

Semantic roles & 50–950 ramp

primary
#284F8E
secondary
#B7945B
accent
#A648DF
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #284F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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