#282877#282877

#282877 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.131 H 276.5°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#282877
RGBrgb(40, 40, 119)
HSLhsl(240, 50%, 31%)
HSVhsv(240, 66%, 47%)
CMYKcmyk(66.4%, 66.4%, 0%, 53.3%)
CIE-LABlab(21.21, 26.50, -45.26)
CIE-LCHlch(21.21, 52.44, 300.35°)
OKLaboklab(33.16% 0.0149 -0.1304)
OKLCHoklch(33.16% 0.131 276.5)
XYZxyz(4.9626, 3.3002, 17.8247)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282877 #777728
analogous
#284F77 #282877 #4F2877
triadic
#282877 #772828 #287728
tetradic
#282877 #77284F #777728 #28774F
square
#282877 #77284F #777728 #28774F
split-complementary
#282877 #774F28 #4F7728
monochromatic
#09091B #191949 #282877 #3737A5 #5454C5

Accessibility & contrast

On white

12.65
#282877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#282877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282877
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282877#FFFFFF#000000##FFFFFF
##2828771.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#002F75
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #282877;
/* rgb */ color: rgb(40, 40, 119);
/* oklch */ color: oklch(33.2% 0.131 276.5);
Tailwind
colors: {
  custom: {
    50: '#6c629f',
    500: '#282877',
    950: '#000000',
  },
}
SCSS
$custom: #282877;
$custom-light: #6c629f;
$custom-dark: #000000;
JSON
{
  "hex": "#282877",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 119
  },
  "hsl": {
    "h": 240,
    "s": 49.686,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33164,
    "c": 0.13127,
    "h": 276.5
  },
  "luminance": 0.03301
}

Semantic roles & 50–950 ramp

primary
#282877
secondary
#A9A952
accent
#D94FD9
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050F
muted
#7A797E

Preview Lab

Preview with #282877

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

Preview Lab → · Contrast checker → · Palette generator →

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