#284C81#284C81

#284C81 is a dark, moderate blue. Relative luminance 0.072; OKLCH L 41.8% C 0.098 H 258.0°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#284C81
RGBrgb(40, 76, 129)
HSLhsl(216, 53%, 33%)
HSVhsv(216, 69%, 51%)
CMYKcmyk(69%, 41.1%, 0%, 49.4%)
CIE-LABlab(32.27, 5.65, -33.72)
CIE-LCHlch(32.27, 34.19, 279.51°)
OKLaboklab(41.77% -0.0203 -0.096)
OKLCHoklch(41.77% 0.098 258)
XYZxyz(7.4205, 7.2042, 21.7641)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284C81 #815D28
analogous
#287881 #284C81 #302881
triadic
#284C81 #81284C #4C8128
tetradic
#284C81 #812878 #815D28 #288130
square
#284C81 #812878 #815D28 #288130
split-complementary
#284C81 #813028 #788128
monochromatic
#0B1524 #1A3052 #284C81 #3668B0 #5887CB

Accessibility & contrast

On white

8.60
#284C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#284C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284C81
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284C81#FFFFFF#000000##FFFFFF
##284C811.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345083
Deuteranopia (green-blind)
#274880
Tritanopia (blue-blind)
#005860
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #284c81;
/* rgb */ color: rgb(40, 76, 129);
/* oklch */ color: oklch(41.8% 0.098 258.0);
Tailwind
colors: {
  custom: {
    50: '#6c7da6',
    500: '#284c81',
    950: '#000000',
  },
}
SCSS
$custom: #284c81;
$custom-light: #6c7da6;
$custom-dark: #000000;
JSON
{
  "hex": "#284c81",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 129
  },
  "hsl": {
    "h": 215.73,
    "s": 52.663,
    "l": 33.137
  },
  "oklch": {
    "l": 0.41765,
    "c": 0.09816,
    "h": 258
  },
  "luminance": 0.07205
}

Semantic roles & 50–950 ramp

primary
#284C81
secondary
#B08B54
accent
#A24CDC
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #284C81

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

Preview Lab → · Contrast checker → · Palette generator →

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