#282C87#282C87

#282C87 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.149 H 273.9°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#282C87
RGBrgb(40, 44, 135)
HSLhsl(237, 54%, 34%)
HSVhsv(237, 70%, 53%)
CMYKcmyk(70.4%, 67.4%, 0%, 47.1%)
CIE-LABlab(23.68, 29.69, -51.33)
CIE-LCHlch(23.68, 59.30, 300.04°)
OKLaboklab(35.42% 0.0102 -0.1482)
OKLCHoklch(35.42% 0.149 273.9)
XYZxyz(6.1475, 4.0012, 23.3653)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C87 #878328
analogous
#285C87 #282C87 #542887
triadic
#282C87 #87282C #2C8728
tetradic
#282C87 #87285C #878328 #288754
square
#282C87 #87285C #878328 #288754
split-complementary
#282C87 #875428 #5C8728
monochromatic
#0C0D29 #1A1D58 #282C87 #363BB6 #5B60CE

Accessibility & contrast

On white

11.66
#282C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#282C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282C87
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C87#FFFFFF#000000##FFFFFF
##282C871.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #282c87;
/* rgb */ color: rgb(40, 44, 135);
/* oklch */ color: oklch(35.4% 0.149 273.9);
Tailwind
colors: {
  custom: {
    50: '#7065ab',
    500: '#282c87',
    950: '#000000',
  },
}
SCSS
$custom: #282c87;
$custom-light: #7065ab;
$custom-dark: #000000;
JSON
{
  "hex": "#282c87",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 237.474,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35418,
    "c": 0.14857,
    "h": 273.9
  },
  "luminance": 0.04002
}

Semantic roles & 50–950 ramp

primary
#282C87
secondary
#B4B057
accent
#D74ADE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #282C87

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

Preview Lab → · Contrast checker → · Palette generator →

#282C87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva