#284B87#284B87

#284B87 is a dark, moderate blue. Relative luminance 0.072; OKLCH L 41.9% C 0.108 H 260.4°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#284B87
RGBrgb(40, 75, 135)
HSLhsl(218, 54%, 34%)
HSVhsv(218, 70%, 53%)
CMYKcmyk(70.4%, 44.4%, 0%, 47.1%)
CIE-LABlab(32.33, 8.62, -37.33)
CIE-LCHlch(32.33, 38.31, 283.01°)
OKLaboklab(41.93% -0.0179 -0.1066)
OKLCHoklch(41.93% 0.108 260.4)
XYZxyz(7.7628, 7.2318, 23.9037)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284B87 #876428
analogous
#287B87 #284B87 #352887
triadic
#284B87 #87284B #4B8728
tetradic
#284B87 #87287B #876428 #288735
square
#284B87 #87287B #876428 #288735
split-complementary
#284B87 #873528 #7B8728
monochromatic
#0C1729 #1A3158 #284B87 #3665B6 #5B86CE

Accessibility & contrast

On white

8.58
#284B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#284B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284B87
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284B87#FFFFFF#000000##FFFFFF
##284B871.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5189
Deuteranopia (green-blind)
#1E4886
Tritanopia (blue-blind)
#005962
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #284b87;
/* rgb */ color: rgb(40, 75, 135);
/* oklch */ color: oklch(41.9% 0.108 260.4);
Tailwind
colors: {
  custom: {
    50: '#6e7caa',
    500: '#284b87',
    950: '#000000',
  },
}
SCSS
$custom: #284b87;
$custom-light: #6e7caa;
$custom-dark: #000000;
JSON
{
  "hex": "#284b87",
  "rgb": {
    "r": 40,
    "g": 75,
    "b": 135
  },
  "hsl": {
    "h": 217.895,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.41931,
    "c": 0.10813,
    "h": 260.4
  },
  "luminance": 0.07233
}

Semantic roles & 50–950 ramp

primary
#284B87
secondary
#B49257
accent
#A74ADE
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #284B87

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

Preview Lab → · Contrast checker → · Palette generator →

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