#284D9C#284D9C

#284D9C is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.9% C 0.136 H 263.1°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#284D9C
RGBrgb(40, 77, 156)
HSLhsl(221, 59%, 38%)
HSVhsv(221, 74%, 61%)
CMYKcmyk(74.4%, 50.6%, 0%, 38.8%)
CIE-LABlab(34.31, 15.41, -46.95)
CIE-LCHlch(34.31, 49.41, 288.18°)
OKLaboklab(43.9% -0.0163 -0.1349)
OKLCHoklch(43.9% 0.136 263.1)
XYZxyz(9.5276, 8.1581, 32.5186)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284D9C #9C7728
analogous
#28879C #284D9C #3D289C
triadic
#284D9C #9C284D #4D9C28
tetradic
#284D9C #9C2887 #9C7728 #289C3D
square
#284D9C #9C2887 #9C7728 #289C3D
split-complementary
#284D9C #9C3D28 #879C28
monochromatic
#0F1D3B #1C356B #284D9C #3666CB #678BD8

Accessibility & contrast

On white

7.98
#284D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#284D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284D9C
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284D9C#FFFFFF#000000##FFFFFF
##284D9C1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E569F
Deuteranopia (green-blind)
#004C9A
Tritanopia (blue-blind)
#00606D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #284d9c;
/* rgb */ color: rgb(40, 77, 156);
/* oklch */ color: oklch(43.9% 0.136 263.1);
Tailwind
colors: {
  custom: {
    50: '#727eba',
    500: '#284d9c',
    950: '#000000',
  },
}
SCSS
$custom: #284d9c;
$custom-light: #727eba;
$custom-dark: #000000;
JSON
{
  "hex": "#284d9c",
  "rgb": {
    "r": 40,
    "g": 77,
    "b": 156
  },
  "hsl": {
    "h": 220.862,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.43899,
    "c": 0.13587,
    "h": 263.1
  },
  "luminance": 0.08159
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #284D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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