#284C97#284C97

#284C97 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.3% C 0.130 H 262.9°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#284C97
RGBrgb(40, 76, 151)
HSLhsl(221, 58%, 37%)
HSVhsv(221, 74%, 59%)
CMYKcmyk(73.5%, 49.7%, 0%, 40.8%)
CIE-LABlab(33.68, 14.14, -44.94)
CIE-LCHlch(33.68, 47.12, 287.47°)
OKLaboklab(43.3% -0.0161 -0.129)
OKLCHoklch(43.3% 0.13 262.9)
XYZxyz(9.0434, 7.8534, 30.3114)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284C97 #977328
analogous
#288397 #284C97 #3C2897
triadic
#284C97 #97284C #4C9728
tetradic
#284C97 #972883 #977328 #28973C
square
#284C97 #972883 #977328 #28973C
split-complementary
#284C97 #973C28 #839728
monochromatic
#0E1B36 #1B3467 #284C97 #3564C7 #6489D6

Accessibility & contrast

On white

8.17
#284C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#284C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284C97
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284C97#FFFFFF#000000##FFFFFF
##284C971.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22559A
Deuteranopia (green-blind)
#004A95
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #284c97;
/* rgb */ color: rgb(40, 76, 151);
/* oklch */ color: oklch(43.3% 0.130 262.9);
Tailwind
colors: {
  custom: {
    50: '#717db6',
    500: '#284c97',
    950: '#000000',
  },
}
SCSS
$custom: #284c97;
$custom-light: #717db6;
$custom-dark: #000000;
JSON
{
  "hex": "#284c97",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 151
  },
  "hsl": {
    "h": 220.541,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.43304,
    "c": 0.13001,
    "h": 262.9
  },
  "luminance": 0.07854
}

Semantic roles & 50–950 ramp

primary
#284C97
secondary
#BC9E5F
accent
#AF46E1
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #284C97

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

Preview Lab → · Contrast checker → · Palette generator →

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