#281A8F#281A8F

#281A8F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.178 H 276.3°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#281A8F
RGBrgb(40, 26, 143)
HSLhsl(247, 69%, 33%)
HSVhsv(247, 82%, 56%)
CMYKcmyk(72%, 81.8%, 0%, 43.9%)
CIE-LABlab(20.72, 43.00, -61.19)
CIE-LCHlch(20.72, 74.79, 305.10°)
OKLaboklab(33.57% 0.0194 -0.1769)
OKLCHoklch(33.57% 0.178 276.3)
XYZxyz(6.2008, 3.1725, 26.2668)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A8F #818F1A
analogous
#1A478F #281A8F #621A8F
triadic
#281A8F #8F281A #1A8F28
tetradic
#281A8F #8F1A47 #818F1A #1A8F62
square
#281A8F #8F1A47 #818F1A #1A8F62
split-complementary
#281A8F #8F621A #478F1A
monochromatic
#0B0727 #1A115B #281A8F #3623C3 #5846DD

Accessibility & contrast

On white

12.85
#281A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281A8F
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A8F#FFFFFF#000000##FFFFFF
##281A8F1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #281a8f;
/* rgb */ color: rgb(40, 26, 143);
/* oklch */ color: oklch(33.6% 0.178 276.3);
Tailwind
colors: {
  custom: {
    50: '#735ab1',
    500: '#281a8f',
    950: '#000000',
  },
}
SCSS
$custom: #281a8f;
$custom-light: #735ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#281a8f",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 247.179,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33565,
    "c": 0.17793,
    "h": 276.3
  },
  "luminance": 0.03173
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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