#284C9C#284C9C

#284C9C is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.7% C 0.137 H 263.5°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#284C9C
RGBrgb(40, 76, 156)
HSLhsl(221, 59%, 38%)
HSVhsv(221, 74%, 61%)
CMYKcmyk(74.4%, 51.3%, 0%, 38.8%)
CIE-LABlab(34.02, 16.08, -47.41)
CIE-LCHlch(34.02, 50.06, 288.74°)
OKLaboklab(43.68% -0.0154 -0.1363)
OKLCHoklch(43.68% 0.137 263.5)
XYZxyz(9.4581, 8.0193, 32.4955)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284C9C #9C7828
analogous
#28869C #284C9C #3E289C
triadic
#284C9C #9C284C #4C9C28
tetradic
#284C9C #9C2886 #9C7828 #289C3E
square
#284C9C #9C2886 #9C7828 #289C3E
split-complementary
#284C9C #9C3E28 #869C28
monochromatic
#0F1D3B #1C346B #284C9C #3664CB #678AD8

Accessibility & contrast

On white

8.06
#284C9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #284C9C
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284C9C#FFFFFF#000000##FFFFFF
##284C9C1.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B569F
Deuteranopia (green-blind)
#004B9A
Tritanopia (blue-blind)
#005F6C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #284c9c;
/* rgb */ color: rgb(40, 76, 156);
/* oklch */ color: oklch(43.7% 0.137 263.5);
Tailwind
colors: {
  custom: {
    50: '#727dba',
    500: '#284c9c',
    950: '#000000',
  },
}
SCSS
$custom: #284c9c;
$custom-light: #727dba;
$custom-dark: #000000;
JSON
{
  "hex": "#284c9c",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 156
  },
  "hsl": {
    "h": 221.379,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.4368,
    "c": 0.13714,
    "h": 263.5
  },
  "luminance": 0.0802
}

Semantic roles & 50–950 ramp

primary
#284C9C
secondary
#BEA162
accent
#B245E2
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #284C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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