#281C87#281C87

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

Color values

HEX#281C87
RGBrgb(40, 28, 135)
HSLhsl(247, 66%, 32%)
HSVhsv(247, 79%, 53%)
CMYKcmyk(70.4%, 79.3%, 0%, 47.1%)
CIE-LABlab(20.17, 39.39, -57.11)
CIE-LCHlch(20.17, 69.38, 304.60°)
OKLaboklab(32.91% 0.0206 -0.165)
OKLCHoklch(32.91% 0.166 277.1)
XYZxyz(5.6621, 3.0304, 23.2035)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C87 #7B871C
analogous
#1C4687 #281C87 #5E1C87
triadic
#281C87 #87281C #1C8728
tetradic
#281C87 #871C46 #7B871C #1C875E
square
#281C87 #871C46 #7B871C #1C875E
split-complementary
#281C87 #875E1C #46871C
monochromatic
#0A0722 #191154 #281C87 #3727BA #5645D8

Accessibility & contrast

On white

13.07
#281C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281C87
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C87#FFFFFF#000000##FFFFFF
##281C871.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.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: #281c87;
/* rgb */ color: rgb(40, 28, 135);
/* oklch */ color: oklch(32.9% 0.166 277.1);
Tailwind
colors: {
  custom: {
    50: '#715bab',
    500: '#281c87',
    950: '#000000',
  },
}
SCSS
$custom: #281c87;
$custom-light: #715bab;
$custom-dark: #000000;
JSON
{
  "hex": "#281c87",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 246.729,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32907,
    "c": 0.16631,
    "h": 277.1
  },
  "luminance": 0.03031
}

Semantic roles & 50–950 ramp

primary
#281C87
secondary
#ADBA45
accent
#E93FD6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281C87

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

Preview Lab → · Contrast checker → · Palette generator →

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