#284F8A#284F8A

#284F8A is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.1% C 0.108 H 258.5°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#284F8A
RGBrgb(40, 79, 138)
HSLhsl(216, 55%, 35%)
HSVhsv(216, 71%, 54%)
CMYKcmyk(71%, 42.8%, 0%, 45.9%)
CIE-LABlab(33.73, 7.11, -36.94)
CIE-LCHlch(33.73, 37.62, 280.89°)
OKLaboklab(43.07% -0.0214 -0.1054)
OKLCHoklch(43.07% 0.108 258.5)
XYZxyz(8.2568, 7.8772, 25.1251)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F8A #8A6328
analogous
#28808A #284F8A #32288A
triadic
#284F8A #8A284F #4F8A28
tetradic
#284F8A #8A2880 #8A6328 #288A32
square
#284F8A #8A2880 #8A6328 #288A32
split-complementary
#284F8A #8A3228 #808A28
monochromatic
#0C192B #1A345B #284F8A #366AB9 #5D8AD0

Accessibility & contrast

On white

8.15
#284F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#284F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284F8A
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F8A#FFFFFF#000000##FFFFFF
##284F8A1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33548C
Deuteranopia (green-blind)
#234B89
Tritanopia (blue-blind)
#005D65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #284f8a;
/* rgb */ color: rgb(40, 79, 138);
/* oklch */ color: oklch(43.1% 0.108 258.5);
Tailwind
colors: {
  custom: {
    50: '#6e7fac',
    500: '#284f8a',
    950: '#000000',
  },
}
SCSS
$custom: #284f8a;
$custom-light: #6e7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#284f8a",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 138
  },
  "hsl": {
    "h": 216.122,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.43072,
    "c": 0.10757,
    "h": 258.5
  },
  "luminance": 0.07878
}

Semantic roles & 50–950 ramp

primary
#284F8A
secondary
#B59059
accent
#A349DE
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #284F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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