#284C9D#284C9D

#284C9D is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.8% C 0.139 H 263.6°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#284C9D
RGBrgb(40, 76, 157)
HSLhsl(222, 59%, 39%)
HSVhsv(222, 75%, 62%)
CMYKcmyk(74.5%, 51.6%, 0%, 38.4%)
CIE-LABlab(34.09, 16.47, -47.90)
CIE-LCHlch(34.09, 50.65, 288.98°)
OKLaboklab(43.76% -0.0153 -0.1377)
OKLCHoklch(43.76% 0.139 263.6)
XYZxyz(9.5432, 8.0533, 32.9432)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284C9D #9D7928
analogous
#28869D #284C9D #3E289D
triadic
#284C9D #9D284C #4C9D28
tetradic
#284C9D #9D2886 #9D7928 #289D3E
square
#284C9D #9D2886 #9D7928 #289D3E
split-complementary
#284C9D #9D3E28 #869D28
monochromatic
#0F1D3B #1C346C #284C9D #3664CC #678AD8

Accessibility & contrast

On white

8.04
#284C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#284C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284C9D
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284C9D#FFFFFF#000000##FFFFFF
##284C9D1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A56A0
Deuteranopia (green-blind)
#004B9B
Tritanopia (blue-blind)
#005F6D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #284c9d;
/* rgb */ color: rgb(40, 76, 157);
/* oklch */ color: oklch(43.8% 0.139 263.6);
Tailwind
colors: {
  custom: {
    50: '#727dba',
    500: '#284c9d',
    950: '#000000',
  },
}
SCSS
$custom: #284c9d;
$custom-light: #727dba;
$custom-dark: #000000;
JSON
{
  "hex": "#284c9d",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 157
  },
  "hsl": {
    "h": 221.538,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.43757,
    "c": 0.13856,
    "h": 263.6
  },
  "luminance": 0.08054
}

Semantic roles & 50–950 ramp

primary
#284C9D
secondary
#BEA262
accent
#B245E3
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #284C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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