#281D87#281D87

#281D87 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.165 H 277.0°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#281D87
RGBrgb(40, 29, 135)
HSLhsl(246, 65%, 32%)
HSVhsv(246, 79%, 53%)
CMYKcmyk(70.4%, 78.5%, 0%, 47.1%)
CIE-LABlab(20.36, 38.85, -56.79)
CIE-LCHlch(20.36, 68.81, 304.37°)
OKLaboklab(33.04% 0.02 -0.1641)
OKLCHoklch(33.04% 0.165 277)
XYZxyz(5.6862, 3.0786, 23.2115)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D87 #7C871D
analogous
#1D4787 #281D87 #5D1D87
triadic
#281D87 #87281D #1D8728
tetradic
#281D87 #871D47 #7C871D #1D875D
square
#281D87 #871D47 #7C871D #1D875D
split-complementary
#281D87 #875D1D #47871D
monochromatic
#0A0722 #191255 #281D87 #3728B9 #5647D7

Accessibility & contrast

On white

13.00
#281D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#281D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D87
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D87#FFFFFF#000000##FFFFFF
##281D871.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #281d87;
/* rgb */ color: rgb(40, 29, 135);
/* oklch */ color: oklch(33.0% 0.165 277.0);
Tailwind
colors: {
  custom: {
    50: '#715bab',
    500: '#281d87',
    950: '#000000',
  },
}
SCSS
$custom: #281d87;
$custom-light: #715bab;
$custom-dark: #000000;
JSON
{
  "hex": "#281d87",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 246.226,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33041,
    "c": 0.16534,
    "h": 277
  },
  "luminance": 0.03079
}

Semantic roles & 50–950 ramp

primary
#281D87
secondary
#ADB946
accent
#E840D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281D87

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

Preview Lab → · Contrast checker → · Palette generator →

#281D87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva