#284E9C#284E9C

#284E9C is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.1% C 0.135 H 262.7°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#284E9C
RGBrgb(40, 78, 156)
HSLhsl(220, 59%, 38%)
HSVhsv(220, 74%, 61%)
CMYKcmyk(74.4%, 50%, 0%, 38.8%)
CIE-LABlab(34.60, 14.74, -46.48)
CIE-LCHlch(34.60, 48.76, 287.60°)
OKLaboklab(44.12% -0.0172 -0.1335)
OKLCHoklch(44.12% 0.135 262.7)
XYZxyz(9.5981, 8.2992, 32.5421)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284E9C #9C7628
analogous
#28889C #284E9C #3C289C
triadic
#284E9C #9C284E #4E9C28
tetradic
#284E9C #9C2888 #9C7628 #289C3C
square
#284E9C #9C2888 #9C7628 #289C3C
split-complementary
#284E9C #9C3C28 #889C28
monochromatic
#0F1D3B #1C366B #284E9C #3667CB #678CD8

Accessibility & contrast

On white

7.89
#284E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#284E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284E9C
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284E9C#FFFFFF#000000##FFFFFF
##284E9C1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21579F
Deuteranopia (green-blind)
#004C9A
Tritanopia (blue-blind)
#00616D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #284e9c;
/* rgb */ color: rgb(40, 78, 156);
/* oklch */ color: oklch(44.1% 0.135 262.7);
Tailwind
colors: {
  custom: {
    50: '#727fba',
    500: '#284e9c',
    950: '#000000',
  },
}
SCSS
$custom: #284e9c;
$custom-light: #727fba;
$custom-dark: #000000;
JSON
{
  "hex": "#284e9c",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 156
  },
  "hsl": {
    "h": 220.345,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.44119,
    "c": 0.1346,
    "h": 262.7
  },
  "luminance": 0.083
}

Semantic roles & 50–950 ramp

primary
#284E9C
secondary
#BEA062
accent
#AF45E2
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #284E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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