#284C98#284C98

#284C98 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.4% C 0.131 H 263.0°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#284C98
RGBrgb(40, 76, 152)
HSLhsl(221, 58%, 38%)
HSVhsv(221, 74%, 60%)
CMYKcmyk(73.7%, 50%, 0%, 40.4%)
CIE-LABlab(33.74, 14.53, -45.44)
CIE-LCHlch(33.74, 47.71, 287.73°)
OKLaboklab(43.38% -0.016 -0.1305)
OKLCHoklch(43.38% 0.131 263)
XYZxyz(9.1250, 7.8860, 30.7409)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284C98 #987428
analogous
#288498 #284C98 #3C2898
triadic
#284C98 #98284C #4C9828
tetradic
#284C98 #982884 #987428 #28983C
square
#284C98 #982884 #987428 #28983C
split-complementary
#284C98 #983C28 #849828
monochromatic
#0F1C37 #1B3468 #284C98 #3564C8 #6489D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##284C98#FFFFFF#000000##FFFFFF
##284C981.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)
#21559B
Deuteranopia (green-blind)
#004B96
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #284c98;
/* rgb */ color: rgb(40, 76, 152);
/* oklch */ color: oklch(43.4% 0.131 263.0);
Tailwind
colors: {
  custom: {
    50: '#717db7',
    500: '#284c98',
    950: '#000000',
  },
}
SCSS
$custom: #284c98;
$custom-light: #717db7;
$custom-dark: #000000;
JSON
{
  "hex": "#284c98",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 152
  },
  "hsl": {
    "h": 220.714,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.43379,
    "c": 0.13145,
    "h": 263
  },
  "luminance": 0.07887
}

Semantic roles & 50–950 ramp

primary
#284C98
secondary
#BC9E60
accent
#B046E2
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #284C98

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

Preview Lab → · Contrast checker → · Palette generator →

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