#281B8A#281B8A

#281B8A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.171 H 276.8°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#281B8A
RGBrgb(40, 27, 138)
HSLhsl(247, 67%, 32%)
HSVhsv(247, 80%, 54%)
CMYKcmyk(71%, 80.4%, 0%, 45.9%)
CIE-LABlab(20.32, 40.90, -58.73)
CIE-LCHlch(20.32, 71.57, 304.85°)
OKLaboklab(33.12% 0.0203 -0.1697)
OKLCHoklch(33.12% 0.171 276.8)
XYZxyz(5.8530, 3.0694, 24.3238)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B8A #7D8A1B
analogous
#1B468A #281B8A #601B8A
triadic
#281B8A #8A281B #1B8A28
tetradic
#281B8A #8A1B46 #7D8A1B #1B8A60
square
#281B8A #8A1B46 #7D8A1B #1B8A60
split-complementary
#281B8A #8A601B #468A1B
monochromatic
#0A0724 #191157 #281B8A #3725BD #5645DB

Accessibility & contrast

On white

13.01
#281B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281B8A
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B8A#FFFFFF#000000##FFFFFF
##281B8A1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002C88
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #281b8a;
/* rgb */ color: rgb(40, 27, 138);
/* oklch */ color: oklch(33.1% 0.171 276.8);
Tailwind
colors: {
  custom: {
    50: '#725aad',
    500: '#281b8a',
    950: '#000000',
  },
}
SCSS
$custom: #281b8a;
$custom-light: #725aad;
$custom-dark: #000000;
JSON
{
  "hex": "#281b8a",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 247.027,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33115,
    "c": 0.17095,
    "h": 276.8
  },
  "luminance": 0.0307
}

Semantic roles & 50–950 ramp

primary
#281B8A
secondary
#AEBC45
accent
#EA3ED6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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