#282D87#282D87

#282D87 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.147 H 273.7°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#282D87
RGBrgb(40, 45, 135)
HSLhsl(237, 54%, 34%)
HSVhsv(237, 70%, 53%)
CMYKcmyk(70.4%, 66.7%, 0%, 47.1%)
CIE-LABlab(23.92, 29.03, -50.93)
CIE-LCHlch(23.92, 58.62, 299.69°)
OKLaboklab(35.6% 0.0094 -0.147)
OKLCHoklch(35.6% 0.147 273.7)
XYZxyz(6.1852, 4.0766, 23.3779)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282D87 #878228
analogous
#285D87 #282D87 #532887
triadic
#282D87 #87282D #2D8728
tetradic
#282D87 #87285D #878228 #288753
square
#282D87 #87285D #878228 #288753
split-complementary
#282D87 #875328 #5D8728
monochromatic
#0C0E29 #1A1D58 #282D87 #363DB6 #5B61CE

Accessibility & contrast

On white

11.57
#282D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#282D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282D87
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282D87#FFFFFF#000000##FFFFFF
##282D871.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #282d87;
/* rgb */ color: rgb(40, 45, 135);
/* oklch */ color: oklch(35.6% 0.147 273.7);
Tailwind
colors: {
  custom: {
    50: '#7066ab',
    500: '#282d87',
    950: '#000000',
  },
}
SCSS
$custom: #282d87;
$custom-light: #7066ab;
$custom-dark: #000000;
JSON
{
  "hex": "#282d87",
  "rgb": {
    "r": 40,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 236.842,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35599,
    "c": 0.14732,
    "h": 273.7
  },
  "luminance": 0.04077
}

Semantic roles & 50–950 ramp

primary
#282D87
secondary
#B4AF57
accent
#D64ADE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #282D87

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

Preview Lab → · Contrast checker → · Palette generator →

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