#281A81#281A81

#281A81 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.161 H 278.3°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#281A81
RGBrgb(40, 26, 129)
HSLhsl(248, 66%, 30%)
HSVhsv(248, 80%, 51%)
CMYKcmyk(69%, 79.8%, 0%, 49.4%)
CIE-LABlab(19.12, 38.52, -55.05)
CIE-LCHlch(19.12, 67.19, 304.98°)
OKLaboklab(31.97% 0.0233 -0.159)
OKLCHoklch(31.97% 0.161 278.3)
XYZxyz(5.2056, 2.7744, 21.0258)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A81 #73811A
analogous
#1A4081 #281A81 #5B1A81
triadic
#281A81 #81281A #1A8128
tetradic
#281A81 #811A40 #73811A #1A815B
square
#281A81 #811A40 #73811A #1A815B
split-complementary
#281A81 #815B1A #40811A
monochromatic
#08051B #18104E #281A81 #3824B4 #523DD8

Accessibility & contrast

On white

13.50
#281A81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281A81
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A81#FFFFFF#000000##FFFFFF
##281A811.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281a81;
/* rgb */ color: rgb(40, 26, 129);
/* oklch */ color: oklch(32.0% 0.161 278.3);
Tailwind
colors: {
  custom: {
    50: '#7059a7',
    500: '#281a81',
    950: '#000000',
  },
}
SCSS
$custom: #281a81;
$custom-light: #7059a7;
$custom-dark: #000000;
JSON
{
  "hex": "#281a81",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 129
  },
  "hsl": {
    "h": 248.155,
    "s": 66.452,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31974,
    "c": 0.16073,
    "h": 278.3
  },
  "luminance": 0.02775
}

Semantic roles & 50–950 ramp

primary
#281A81
secondary
#A5B542
accent
#E93ED2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281A81

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

Preview Lab → · Contrast checker → · Palette generator →

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