#281C86#281C86

#281C86 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.165 H 277.3°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#281C86
RGBrgb(40, 28, 134)
HSLhsl(247, 65%, 32%)
HSVhsv(247, 79%, 53%)
CMYKcmyk(70.1%, 79.1%, 0%, 47.5%)
CIE-LABlab(20.05, 39.06, -56.66)
CIE-LCHlch(20.05, 68.82, 304.58°)
OKLaboklab(32.8% 0.0209 -0.1637)
OKLCHoklch(32.8% 0.165 277.3)
XYZxyz(5.5920, 3.0024, 22.8345)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C86 #7A861C
analogous
#1C4586 #281C86 #5D1C86
triadic
#281C86 #86281C #1C8628
tetradic
#281C86 #861C45 #7A861C #1C865D
square
#281C86 #861C45 #7A861C #1C865D
split-complementary
#281C86 #865D1C #45861C
monochromatic
#0A0721 #191153 #281C86 #3727B9 #5544D8

Accessibility & contrast

On white

13.12
#281C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#281C86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C86
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C86#FFFFFF#000000##FFFFFF
##281C861.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281c86;
/* rgb */ color: rgb(40, 28, 134);
/* oklch */ color: oklch(32.8% 0.165 277.3);
Tailwind
colors: {
  custom: {
    50: '#715baa',
    500: '#281c86',
    950: '#000000',
  },
}
SCSS
$custom: #281c86;
$custom-light: #715baa;
$custom-dark: #000000;
JSON
{
  "hex": "#281c86",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 134
  },
  "hsl": {
    "h": 246.792,
    "s": 65.432,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32796,
    "c": 0.16505,
    "h": 277.3
  },
  "luminance": 0.03003
}

Semantic roles & 50–950 ramp

primary
#281C86
secondary
#ACB945
accent
#E83FD5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281C86

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

Preview Lab → · Contrast checker → · Palette generator →

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