#282787#282787

#282787 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.155 H 275.1°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#282787
RGBrgb(40, 39, 135)
HSLhsl(241, 55%, 34%)
HSVhsv(241, 71%, 53%)
CMYKcmyk(70.4%, 71.1%, 0%, 47.1%)
CIE-LABlab(22.48, 32.91, -53.29)
CIE-LCHlch(22.48, 62.63, 301.70°)
OKLaboklab(34.55% 0.0138 -0.154)
OKLCHoklch(34.55% 0.155 275.1)
XYZxyz(5.9723, 3.6509, 23.3069)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282787 #868727
analogous
#275687 #282787 #582787
triadic
#282787 #872827 #278728
tetradic
#282787 #872756 #868727 #278758
square
#282787 #872756 #868727 #278758
split-complementary
#282787 #875827 #568727
monochromatic
#0C0C28 #1A1958 #282787 #3635B6 #5B59CF

Accessibility & contrast

On white

12.14
#282787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#282787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282787
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282787#FFFFFF#000000##FFFFFF
##2827871.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #282787;
/* rgb */ color: rgb(40, 39, 135);
/* oklch */ color: oklch(34.6% 0.155 275.1);
Tailwind
colors: {
  custom: {
    50: '#7062ab',
    500: '#282787',
    950: '#000000',
  },
}
SCSS
$custom: #282787;
$custom-light: #7062ab;
$custom-dark: #000000;
JSON
{
  "hex": "#282787",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 240.625,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34554,
    "c": 0.15458,
    "h": 275.1
  },
  "luminance": 0.03651
}

Semantic roles & 50–950 ramp

primary
#282787
secondary
#B3B456
accent
#DF49DD
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #282787

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

Preview Lab → · Contrast checker → · Palette generator →

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