#281B86#281B86

#281B86 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.166 H 277.4°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#281B86
RGBrgb(40, 27, 134)
HSLhsl(247, 66%, 32%)
HSVhsv(247, 80%, 53%)
CMYKcmyk(70.1%, 79.9%, 0%, 47.5%)
CIE-LABlab(19.87, 39.60, -56.97)
CIE-LCHlch(19.87, 69.39, 304.80°)
OKLaboklab(32.66% 0.0214 -0.1646)
OKLCHoklch(32.66% 0.166 277.4)
XYZxyz(5.5687, 2.9557, 22.8267)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B86 #79861B
analogous
#1B4486 #281B86 #5E1B86
triadic
#281B86 #86281B #1B8628
tetradic
#281B86 #861B44 #79861B #1B865E
square
#281B86 #861B44 #79861B #1B865E
split-complementary
#281B86 #865E1B #44861B
monochromatic
#0A0620 #191153 #281B86 #3725B9 #5542D9

Accessibility & contrast

On white

13.20
#281B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#281B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B86
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B86#FFFFFF#000000##FFFFFF
##281B861.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002B84
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #281b86;
/* rgb */ color: rgb(40, 27, 134);
/* oklch */ color: oklch(32.7% 0.166 277.4);
Tailwind
colors: {
  custom: {
    50: '#715aaa',
    500: '#281b86',
    950: '#000000',
  },
}
SCSS
$custom: #281b86;
$custom-light: #715aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#281b86",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 247.29,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32664,
    "c": 0.16601,
    "h": 277.4
  },
  "luminance": 0.02956
}

Semantic roles & 50–950 ramp

primary
#281B86
secondary
#ABB944
accent
#E93ED5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281B86

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

Preview Lab → · Contrast checker → · Palette generator →

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