#281A87#281A87

#281A87 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.168 H 277.4°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#281A87
RGBrgb(40, 26, 135)
HSLhsl(248, 68%, 32%)
HSVhsv(248, 81%, 53%)
CMYKcmyk(70.4%, 80.7%, 0%, 47.1%)
CIE-LABlab(19.80, 40.45, -57.72)
CIE-LCHlch(19.80, 70.48, 305.02°)
OKLaboklab(32.65% 0.0216 -0.1668)
OKLCHoklch(32.65% 0.168 277.4)
XYZxyz(5.6162, 2.9387, 23.1882)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A87 #79871A
analogous
#1A4387 #281A87 #5F1A87
triadic
#281A87 #87281A #1A8728
tetradic
#281A87 #871A43 #79871A #1A875F
square
#281A87 #871A43 #79871A #1A875F
split-complementary
#281A87 #875F1A #43871A
monochromatic
#0A0620 #191054 #281A87 #3724BA #5541DA

Accessibility & contrast

On white

13.23
#281A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#281A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A87
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A87#FFFFFF#000000##FFFFFF
##281A871.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002B85
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #281a87;
/* rgb */ color: rgb(40, 26, 135);
/* oklch */ color: oklch(32.6% 0.168 277.4);
Tailwind
colors: {
  custom: {
    50: '#715aab',
    500: '#281a87',
    950: '#000000',
  },
}
SCSS
$custom: #281a87;
$custom-light: #715aab;
$custom-dark: #000000;
JSON
{
  "hex": "#281a87",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 247.706,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32649,
    "c": 0.16817,
    "h": 277.4
  },
  "luminance": 0.02939
}

Semantic roles & 50–950 ramp

primary
#281A87
secondary
#ABBA42
accent
#EB3DD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281A87

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

Preview Lab → · Contrast checker → · Palette generator →

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