#284877#284877

#284877 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.2% C 0.088 H 257.9°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#284877
RGBrgb(40, 72, 119)
HSLhsl(216, 50%, 31%)
HSVhsv(216, 66%, 47%)
CMYKcmyk(66.4%, 39.5%, 0%, 53.3%)
CIE-LABlab(30.44, 4.51, -30.39)
CIE-LCHlch(30.44, 30.72, 278.44°)
OKLaboklab(40.16% -0.0184 -0.0863)
OKLCHoklch(40.16% 0.088 257.9)
XYZxyz(6.5210, 6.4171, 18.3442)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284877 #775728
analogous
#286F77 #284877 #2F2877
triadic
#284877 #772848 #487728
tetradic
#284877 #77286F #775728 #28772F
square
#284877 #77286F #775728 #28772F
split-complementary
#284877 #772F28 #6F7728
monochromatic
#09111B #192C49 #284877 #3764A5 #5482C5

Accessibility & contrast

On white

9.20
#284877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#284877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284877
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284877#FFFFFF#000000##FFFFFF
##2848771.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334C79
Deuteranopia (green-blind)
#284476
Tritanopia (blue-blind)
#005359
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #284877;
/* rgb */ color: rgb(40, 72, 119);
/* oklch */ color: oklch(40.2% 0.088 257.9);
Tailwind
colors: {
  custom: {
    50: '#6a7a9e',
    500: '#284877',
    950: '#000000',
  },
}
SCSS
$custom: #284877;
$custom-light: #6a7a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#284877",
  "rgb": {
    "r": 40,
    "g": 72,
    "b": 119
  },
  "hsl": {
    "h": 215.696,
    "s": 49.686,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40155,
    "c": 0.08828,
    "h": 257.9
  },
  "luminance": 0.06418
}

Semantic roles & 50–950 ramp

primary
#284877
secondary
#A98652
accent
#A14FD9
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #284877

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

Preview Lab → · Contrast checker → · Palette generator →

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