#282887#282887

#282887 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.153 H 274.9°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#282887
RGBrgb(40, 40, 135)
HSLhsl(240, 54%, 34%)
HSVhsv(240, 70%, 53%)
CMYKcmyk(70.4%, 70.4%, 0%, 47.1%)
CIE-LABlab(22.71, 32.28, -52.91)
CIE-LCHlch(22.71, 61.98, 301.38°)
OKLaboklab(34.72% 0.0131 -0.1528)
OKLCHoklch(34.72% 0.153 274.9)
XYZxyz(6.0056, 3.7174, 23.3180)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282887 #878728
analogous
#285887 #282887 #582887
triadic
#282887 #872828 #288728
tetradic
#282887 #872858 #878728 #288758
square
#282887 #872858 #878728 #288758
split-complementary
#282887 #875828 #588728
monochromatic
#0C0C29 #1A1A58 #282887 #3636B6 #5B5BCE

Accessibility & contrast

On white

12.04
#282887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#282887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282887
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282887#FFFFFF#000000##FFFFFF
##2828871.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #282887;
/* rgb */ color: rgb(40, 40, 135);
/* oklch */ color: oklch(34.7% 0.153 274.9);
Tailwind
colors: {
  custom: {
    50: '#7062ab',
    500: '#282887',
    950: '#000000',
  },
}
SCSS
$custom: #282887;
$custom-light: #7062ab;
$custom-dark: #000000;
JSON
{
  "hex": "#282887",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 240,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34721,
    "c": 0.1534,
    "h": 274.9
  },
  "luminance": 0.03718
}

Semantic roles & 50–950 ramp

primary
#282887
secondary
#B4B457
accent
#DE4ADE
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #282887

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

Preview Lab → · Contrast checker → · Palette generator →

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