#281B88#281B88

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

Color values

HEX#281B88
RGBrgb(40, 27, 136)
HSLhsl(247, 67%, 32%)
HSVhsv(247, 80%, 53%)
CMYKcmyk(70.6%, 80.1%, 0%, 46.7%)
CIE-LABlab(20.09, 40.25, -57.86)
CIE-LCHlch(20.09, 70.48, 304.83°)
OKLaboklab(32.89% 0.0209 -0.1672)
OKLCHoklch(32.89% 0.168 277.1)
XYZxyz(5.7095, 3.0120, 23.5683)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B88 #7B881B
analogous
#1B4588 #281B88 #5F1B88
triadic
#281B88 #88281B #1B8828
tetradic
#281B88 #881B45 #7B881B #1B885F
square
#281B88 #881B45 #7B881B #1B885F
split-complementary
#281B88 #885F1B #45881B
monochromatic
#0A0722 #191155 #281B88 #3725BB #5644DA

Accessibility & contrast

On white

13.10
#281B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281B88
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B88#FFFFFF#000000##FFFFFF
##281B881.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002C86
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #281b88;
/* rgb */ color: rgb(40, 27, 136);
/* oklch */ color: oklch(32.9% 0.168 277.1);
Tailwind
colors: {
  custom: {
    50: '#715aac',
    500: '#281b88',
    950: '#000000',
  },
}
SCSS
$custom: #281b88;
$custom-light: #715aac;
$custom-dark: #000000;
JSON
{
  "hex": "#281b88",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 136
  },
  "hsl": {
    "h": 247.156,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32889,
    "c": 0.16849,
    "h": 277.1
  },
  "luminance": 0.03013
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281B88

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

Preview Lab → · Contrast checker → · Palette generator →

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