#281D89#281D89

#281D89 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.168 H 276.7°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#281D89
RGBrgb(40, 29, 137)
HSLhsl(246, 65%, 33%)
HSVhsv(246, 79%, 54%)
CMYKcmyk(70.8%, 78.8%, 0%, 46.3%)
CIE-LABlab(20.58, 39.50, -57.68)
CIE-LCHlch(20.58, 69.91, 304.41°)
OKLaboklab(33.26% 0.0196 -0.1667)
OKLCHoklch(33.26% 0.168 276.7)
XYZxyz(5.8283, 3.1355, 23.9601)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D89 #7E891D
analogous
#1D4889 #281D89 #5E1D89
triadic
#281D89 #89281D #1D8928
tetradic
#281D89 #891D48 #7E891D #1D895E
square
#281D89 #891D48 #7E891D #1D895E
split-complementary
#281D89 #895E1D #48891D
monochromatic
#0B0824 #191256 #281D89 #3728BC #5748D8

Accessibility & contrast

On white

12.91
#281D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#281D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D89
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D89#FFFFFF#000000##FFFFFF
##281D891.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #281d89;
/* rgb */ color: rgb(40, 29, 137);
/* oklch */ color: oklch(33.3% 0.168 276.7);
Tailwind
colors: {
  custom: {
    50: '#725cad',
    500: '#281d89',
    950: '#000000',
  },
}
SCSS
$custom: #281d89;
$custom-light: #725cad;
$custom-dark: #000000;
JSON
{
  "hex": "#281d89",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 246.111,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33263,
    "c": 0.16784,
    "h": 276.7
  },
  "luminance": 0.03136
}

Semantic roles & 50–950 ramp

primary
#281D89
secondary
#AFBA47
accent
#E840D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281D89

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

Preview Lab → · Contrast checker → · Palette generator →

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