#281B87#281B87

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

Color values

HEX#281B87
RGBrgb(40, 27, 135)
HSLhsl(247, 67%, 32%)
HSVhsv(247, 80%, 53%)
CMYKcmyk(70.4%, 80%, 0%, 47.1%)
CIE-LABlab(19.98, 39.93, -57.42)
CIE-LCHlch(19.98, 69.93, 304.82°)
OKLaboklab(32.78% 0.0211 -0.1659)
OKLCHoklch(32.78% 0.167 277.3)
XYZxyz(5.6388, 2.9837, 23.1957)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B87 #7A871B
analogous
#1B4487 #281B87 #5E1B87
triadic
#281B87 #87281B #1B8728
tetradic
#281B87 #871B44 #7A871B #1B875E
square
#281B87 #871B44 #7A871B #1B875E
split-complementary
#281B87 #875E1B #44871B
monochromatic
#0A0721 #191154 #281B87 #3725BA #5543D9

Accessibility & contrast

On white

13.15
#281B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281B87
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B87#FFFFFF#000000##FFFFFF
##281B871.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #281b87;
/* rgb */ color: rgb(40, 27, 135);
/* oklch */ color: oklch(32.8% 0.167 277.3);
Tailwind
colors: {
  custom: {
    50: '#715aab',
    500: '#281b87',
    950: '#000000',
  },
}
SCSS
$custom: #281b87;
$custom-light: #715aab;
$custom-dark: #000000;
JSON
{
  "hex": "#281b87",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 247.222,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32777,
    "c": 0.16725,
    "h": 277.3
  },
  "luminance": 0.02984
}

Semantic roles & 50–950 ramp

primary
#281B87
secondary
#ACBA44
accent
#EA3ED5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281B87

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

Preview Lab → · Contrast checker → · Palette generator →

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