#282987#282987

#282987 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.152 H 274.7°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#282987
RGBrgb(40, 41, 135)
HSLhsl(239, 54%, 34%)
HSVhsv(239, 70%, 53%)
CMYKcmyk(70.4%, 69.6%, 0%, 47.1%)
CIE-LABlab(22.95, 31.64, -52.52)
CIE-LCHlch(22.95, 61.31, 301.06°)
OKLaboklab(34.89% 0.0124 -0.1517)
OKLCHoklch(34.89% 0.152 274.7)
XYZxyz(6.0397, 3.7857, 23.3294)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282987 #878628
analogous
#285987 #282987 #572887
triadic
#282987 #872829 #298728
tetradic
#282987 #872859 #878628 #288757
square
#282987 #872859 #878628 #288757
split-complementary
#282987 #875728 #598728
monochromatic
#0C0C29 #1A1B58 #282987 #3637B6 #5B5CCE

Accessibility & contrast

On white

11.95
#282987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#282987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282987
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282987#FFFFFF#000000##FFFFFF
##2829871.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #282987;
/* rgb */ color: rgb(40, 41, 135);
/* oklch */ color: oklch(34.9% 0.152 274.7);
Tailwind
colors: {
  custom: {
    50: '#7063ab',
    500: '#282987',
    950: '#000000',
  },
}
SCSS
$custom: #282987;
$custom-light: #7063ab;
$custom-dark: #000000;
JSON
{
  "hex": "#282987",
  "rgb": {
    "r": 40,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 239.368,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34891,
    "c": 0.15222,
    "h": 274.7
  },
  "luminance": 0.03786
}

Semantic roles & 50–950 ramp

primary
#282987
secondary
#B4B357
accent
#DC4ADE
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #282987

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

Preview Lab → · Contrast checker → · Palette generator →

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