#281A8E#281A8E

#281A8E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.5% C 0.177 H 276.4°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#281A8E
RGBrgb(40, 26, 142)
HSLhsl(247, 69%, 33%)
HSVhsv(247, 82%, 56%)
CMYKcmyk(71.8%, 81.7%, 0%, 44.3%)
CIE-LABlab(20.61, 42.68, -60.76)
CIE-LCHlch(20.61, 74.25, 305.09°)
OKLaboklab(33.45% 0.0197 -0.1756)
OKLCHoklch(33.45% 0.177 276.4)
XYZxyz(6.1254, 3.1423, 25.8697)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A8E #808E1A
analogous
#1A468E #281A8E #621A8E
triadic
#281A8E #8E281A #1A8E28
tetradic
#281A8E #8E1A46 #808E1A #1A8E62
square
#281A8E #8E1A46 #808E1A #1A8E62
split-complementary
#281A8E #8E621A #468E1A
monochromatic
#0B0727 #19115A #281A8E #3723C2 #5845DD

Accessibility & contrast

On white

12.89
#281A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#281A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A8E
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A8E#FFFFFF#000000##FFFFFF
##281A8E1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #281a8e;
/* rgb */ color: rgb(40, 26, 142);
/* oklch */ color: oklch(33.5% 0.177 276.4);
Tailwind
colors: {
  custom: {
    50: '#735ab0',
    500: '#281a8e',
    950: '#000000',
  },
}
SCSS
$custom: #281a8e;
$custom-light: #735ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#281a8e",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 247.241,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3345,
    "c": 0.17672,
    "h": 276.4
  },
  "luminance": 0.03143
}

Semantic roles & 50–950 ramp

primary
#281A8E
secondary
#B0BE45
accent
#EC3CD7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #281A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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