#281987#281987

#281987 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.169 H 277.5°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#281987
RGBrgb(40, 25, 135)
HSLhsl(248, 69%, 31%)
HSVhsv(248, 81%, 53%)
CMYKcmyk(70.4%, 81.5%, 0%, 47.1%)
CIE-LABlab(19.62, 40.97, -58.01)
CIE-LCHlch(19.62, 71.02, 305.23°)
OKLaboklab(32.53% 0.0221 -0.1676)
OKLCHoklch(32.53% 0.169 277.5)
XYZxyz(5.5945, 2.8951, 23.1810)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281987 #788719
analogous
#194187 #281987 #5F1987
triadic
#281987 #872819 #198728
tetradic
#281987 #871941 #788719 #19875F
square
#281987 #871941 #788719 #19875F
split-complementary
#281987 #875F19 #418719
monochromatic
#090620 #190F53 #281987 #3723BB #543FDB

Accessibility & contrast

On white

13.30
#281987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#281987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281987
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281987#FFFFFF#000000##FFFFFF
##2819871.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002B85
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #281987;
/* rgb */ color: rgb(40, 25, 135);
/* oklch */ color: oklch(32.5% 0.169 277.5);
Tailwind
colors: {
  custom: {
    50: '#7159ab',
    500: '#281987',
    950: '#000000',
  },
}
SCSS
$custom: #281987;
$custom-light: #7159ab;
$custom-dark: #000000;
JSON
{
  "hex": "#281987",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 248.182,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32526,
    "c": 0.16906,
    "h": 277.5
  },
  "luminance": 0.02896
}

Semantic roles & 50–950 ramp

primary
#281987
secondary
#AABA41
accent
#EC3CD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281987

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

Preview Lab → · Contrast checker → · Palette generator →

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