#284787#284787

#284787 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.0% C 0.113 H 262.9°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#284787
RGBrgb(40, 71, 135)
HSLhsl(220, 54%, 34%)
HSVhsv(220, 70%, 53%)
CMYKcmyk(70.4%, 47.4%, 0%, 47.1%)
CIE-LABlab(31.13, 11.32, -39.25)
CIE-LCHlch(31.13, 40.85, 286.09°)
OKLaboklab(41.01% -0.0139 -0.1123)
OKLCHoklch(41.01% 0.113 262.9)
XYZxyz(7.4999, 6.7061, 23.8161)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284787 #876828
analogous
#287787 #284787 #392887
triadic
#284787 #872847 #478728
tetradic
#284787 #872877 #876828 #288739
square
#284787 #872877 #876828 #288739
split-complementary
#284787 #873928 #778728
monochromatic
#0C1529 #1A2E58 #284787 #3660B6 #5B81CE

Accessibility & contrast

On white

8.97
#284787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#284787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284787
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284787#FFFFFF#000000##FFFFFF
##2847871.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274E89
Deuteranopia (green-blind)
#144586
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #284787;
/* rgb */ color: rgb(40, 71, 135);
/* oklch */ color: oklch(41.0% 0.113 262.9);
Tailwind
colors: {
  custom: {
    50: '#6e79aa',
    500: '#284787',
    950: '#000000',
  },
}
SCSS
$custom: #284787;
$custom-light: #6e79aa;
$custom-dark: #000000;
JSON
{
  "hex": "#284787",
  "rgb": {
    "r": 40,
    "g": 71,
    "b": 135
  },
  "hsl": {
    "h": 220.421,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.41007,
    "c": 0.11321,
    "h": 262.9
  },
  "luminance": 0.06707
}

Semantic roles & 50–950 ramp

primary
#284787
secondary
#B49557
accent
#AE4ADE
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #284787

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

Preview Lab → · Contrast checker → · Palette generator →

#284787 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva