#281D86#281D86

#281D86 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.164 H 277.1°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#281D86
RGBrgb(40, 29, 134)
HSLhsl(246, 64%, 32%)
HSVhsv(246, 78%, 53%)
CMYKcmyk(70.1%, 78.4%, 0%, 47.5%)
CIE-LABlab(20.25, 38.52, -56.35)
CIE-LCHlch(20.25, 68.25, 304.35°)
OKLaboklab(32.93% 0.0203 -0.1628)
OKLCHoklch(32.93% 0.164 277.1)
XYZxyz(5.6161, 3.0506, 22.8425)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D86 #7B861D
analogous
#1D4786 #281D86 #5D1D86
triadic
#281D86 #86281D #1D8628
tetradic
#281D86 #861D47 #7B861D #1D865D
square
#281D86 #861D47 #7B861D #1D865D
split-complementary
#281D86 #865D1D #47861D
monochromatic
#0A0721 #191254 #281D86 #3728B8 #5646D7

Accessibility & contrast

On white

13.04
#281D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#281D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D86
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D86#FFFFFF#000000##FFFFFF
##281D861.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #281d86;
/* rgb */ color: rgb(40, 29, 134);
/* oklch */ color: oklch(32.9% 0.164 277.1);
Tailwind
colors: {
  custom: {
    50: '#715baa',
    500: '#281d86',
    950: '#000000',
  },
}
SCSS
$custom: #281d86;
$custom-light: #715baa;
$custom-dark: #000000;
JSON
{
  "hex": "#281d86",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 134
  },
  "hsl": {
    "h": 246.286,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3293,
    "c": 0.16408,
    "h": 277.1
  },
  "luminance": 0.03051
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281D86

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

Preview Lab → · Contrast checker → · Palette generator →

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