#281B89#281B89

#281B89 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.0% C 0.170 H 277.0°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#281B89
RGBrgb(40, 27, 137)
HSLhsl(247, 67%, 32%)
HSVhsv(247, 80%, 54%)
CMYKcmyk(70.8%, 80.3%, 0%, 46.3%)
CIE-LABlab(20.21, 40.57, -58.30)
CIE-LCHlch(20.21, 71.03, 304.84°)
OKLaboklab(33% 0.0206 -0.1685)
OKLCHoklch(33% 0.17 277)
XYZxyz(5.7809, 3.0406, 23.9443)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B89 #7C891B
analogous
#1B4589 #281B89 #5F1B89
triadic
#281B89 #89281B #1B8928
tetradic
#281B89 #891B45 #7C891B #1B895F
square
#281B89 #891B45 #7C891B #1B895F
split-complementary
#281B89 #895F1B #45891B
monochromatic
#0A0723 #191156 #281B89 #3725BC #5644DA

Accessibility & contrast

On white

13.06
#281B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281B89
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B89#FFFFFF#000000##FFFFFF
##281B891.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #281b89;
/* rgb */ color: rgb(40, 27, 137);
/* oklch */ color: oklch(33.0% 0.170 277.0);
Tailwind
colors: {
  custom: {
    50: '#725aad',
    500: '#281b89',
    950: '#000000',
  },
}
SCSS
$custom: #281b89;
$custom-light: #725aad;
$custom-dark: #000000;
JSON
{
  "hex": "#281b89",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 247.091,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33002,
    "c": 0.16972,
    "h": 277
  },
  "luminance": 0.03041
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281B89

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

Preview Lab → · Contrast checker → · Palette generator →

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