#284F9A#284F9A

#284F9A is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.2% C 0.131 H 261.9°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#284F9A
RGBrgb(40, 79, 154)
HSLhsl(219, 59%, 38%)
HSVhsv(219, 74%, 60%)
CMYKcmyk(74%, 48.7%, 0%, 39.6%)
CIE-LABlab(34.75, 13.30, -45.03)
CIE-LCHlch(34.75, 46.95, 286.45°)
OKLaboklab(44.19% -0.0184 -0.1292)
OKLCHoklch(44.19% 0.131 261.9)
XYZxyz(9.5017, 8.3751, 31.6814)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F9A #9A7328
analogous
#28889A #284F9A #3A289A
triadic
#284F9A #9A284F #4F9A28
tetradic
#284F9A #9A2888 #9A7328 #289A3A
square
#284F9A #9A2888 #9A7328 #289A3A
split-complementary
#284F9A #9A3A28 #889A28
monochromatic
#0F1D39 #1B3669 #284F9A #3568CA #658CD7

Accessibility & contrast

On white

7.85
#284F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#284F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284F9A
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F9A#FFFFFF#000000##FFFFFF
##284F9A1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26579D
Deuteranopia (green-blind)
#054D98
Tritanopia (blue-blind)
#00616D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #284f9a;
/* rgb */ color: rgb(40, 79, 154);
/* oklch */ color: oklch(44.2% 0.131 261.9);
Tailwind
colors: {
  custom: {
    50: '#727fb8',
    500: '#284f9a',
    950: '#000000',
  },
}
SCSS
$custom: #284f9a;
$custom-light: #727fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#284f9a",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 154
  },
  "hsl": {
    "h": 219.474,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.44194,
    "c": 0.1305,
    "h": 261.9
  },
  "luminance": 0.08376
}

Semantic roles & 50–950 ramp

primary
#284F9A
secondary
#BD9D61
accent
#AD46E2
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #284F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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