#284A87#284A87

#284A87 is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.7% C 0.109 H 261.1°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#284A87
RGBrgb(40, 74, 135)
HSLhsl(219, 54%, 34%)
HSVhsv(219, 70%, 53%)
CMYKcmyk(70.4%, 45.2%, 0%, 47.1%)
CIE-LABlab(32.03, 9.29, -37.81)
CIE-LCHlch(32.03, 38.93, 283.81°)
OKLaboklab(41.7% -0.0169 -0.1081)
OKLCHoklch(41.7% 0.109 261.1)
XYZxyz(7.6955, 7.0972, 23.8813)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284A87 #876528
analogous
#287A87 #284A87 #352887
triadic
#284A87 #87284A #4A8728
tetradic
#284A87 #87287A #876528 #288735
square
#284A87 #87287A #876528 #288735
split-complementary
#284A87 #873528 #7A8728
monochromatic
#0C1629 #1A3058 #284A87 #3664B6 #5B84CE

Accessibility & contrast

On white

8.68
#284A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#284A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284A87
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284A87#FFFFFF#000000##FFFFFF
##284A871.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5089
Deuteranopia (green-blind)
#1C4786
Tritanopia (blue-blind)
#005862
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #284a87;
/* rgb */ color: rgb(40, 74, 135);
/* oklch */ color: oklch(41.7% 0.109 261.1);
Tailwind
colors: {
  custom: {
    50: '#6e7caa',
    500: '#284a87',
    950: '#000000',
  },
}
SCSS
$custom: #284a87;
$custom-light: #6e7caa;
$custom-dark: #000000;
JSON
{
  "hex": "#284a87",
  "rgb": {
    "r": 40,
    "g": 74,
    "b": 135
  },
  "hsl": {
    "h": 218.526,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.41698,
    "c": 0.10938,
    "h": 261.1
  },
  "luminance": 0.07098
}

Semantic roles & 50–950 ramp

primary
#284A87
secondary
#B49357
accent
#A94ADE
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #284A87

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

Preview Lab → · Contrast checker → · Palette generator →

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