#281B81#281B81

#281B81 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.160 H 278.2°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#281B81
RGBrgb(40, 27, 129)
HSLhsl(248, 65%, 31%)
HSVhsv(248, 79%, 51%)
CMYKcmyk(69%, 79.1%, 0%, 49.4%)
CIE-LABlab(19.31, 37.97, -54.74)
CIE-LCHlch(19.31, 66.62, 304.75°)
OKLaboklab(32.11% 0.0227 -0.1581)
OKLCHoklch(32.11% 0.16 278.2)
XYZxyz(5.2282, 2.8195, 21.0333)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B81 #74811B
analogous
#1B4181 #281B81 #5B1B81
triadic
#281B81 #81281B #1B8128
tetradic
#281B81 #811B41 #74811B #1B815B
square
#281B81 #811B41 #74811B #1B815B
split-complementary
#281B81 #815B1B #41811B
monochromatic
#09061C #18104E #281B81 #3826B4 #533FD7

Accessibility & contrast

On white

13.43
#281B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#281B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B81
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B81#FFFFFF#000000##FFFFFF
##281B811.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #281b81;
/* rgb */ color: rgb(40, 27, 129);
/* oklch */ color: oklch(32.1% 0.160 278.2);
Tailwind
colors: {
  custom: {
    50: '#705aa7',
    500: '#281b81',
    950: '#000000',
  },
}
SCSS
$custom: #281b81;
$custom-light: #705aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#281b81",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 247.647,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32106,
    "c": 0.15975,
    "h": 278.2
  },
  "luminance": 0.0282
}

Semantic roles & 50–950 ramp

primary
#281B81
secondary
#A6B543
accent
#E83FD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281B81

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

Preview Lab → · Contrast checker → · Palette generator →

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