#281887#281887

#281887 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.170 H 277.6°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#281887
RGBrgb(40, 24, 135)
HSLhsl(249, 70%, 31%)
HSVhsv(249, 82%, 53%)
CMYKcmyk(70.4%, 82.2%, 0%, 47.1%)
CIE-LABlab(19.45, 41.47, -58.30)
CIE-LCHlch(19.45, 71.54, 305.42°)
OKLaboklab(32.41% 0.0226 -0.1684)
OKLCHoklch(32.41% 0.17 277.6)
XYZxyz(5.5735, 2.8532, 23.1740)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281887 #778718
analogous
#183F87 #281887 #5F1887
triadic
#281887 #872818 #188728
tetradic
#281887 #87183F #778718 #18875F
square
#281887 #87183F #778718 #18875F
split-complementary
#281887 #875F18 #3F8718
monochromatic
#09061F #190F53 #281887 #3721BB #543DDC

Accessibility & contrast

On white

13.37
#281887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#281887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281887
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281887#FFFFFF#000000##FFFFFF
##2818871.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338A
Deuteranopia (green-blind)
#002A85
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #281887;
/* rgb */ color: rgb(40, 24, 135);
/* oklch */ color: oklch(32.4% 0.170 277.6);
Tailwind
colors: {
  custom: {
    50: '#7259ab',
    500: '#281887',
    950: '#000000',
  },
}
SCSS
$custom: #281887;
$custom-light: #7259ab;
$custom-dark: #000000;
JSON
{
  "hex": "#281887",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 248.649,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32405,
    "c": 0.16994,
    "h": 277.6
  },
  "luminance": 0.02854
}

Semantic roles & 50–950 ramp

primary
#281887
secondary
#A9BB40
accent
#ED3BD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281887

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

Preview Lab → · Contrast checker → · Palette generator →

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