#281A9A#281A9A

#281A9A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.191 H 274.9°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#281A9A
RGBrgb(40, 26, 154)
HSLhsl(247, 71%, 35%)
HSVhsv(247, 83%, 60%)
CMYKcmyk(74%, 83.1%, 0%, 39.6%)
CIE-LABlab(22.02, 46.43, -65.83)
CIE-LCHlch(22.02, 80.56, 305.20°)
OKLaboklab(34.85% 0.0163 -0.1903)
OKLCHoklch(34.85% 0.191 274.9)
XYZxyz(7.0753, 3.5223, 30.8726)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A9A #8C9A1A
analogous
#1A4C9A #281A9A #681A9A
triadic
#281A9A #9A281A #1A9A28
tetradic
#281A9A #9A1A4C #8C9A1A #1A9A68
square
#281A9A #9A1A4C #8C9A1A #1A9A68
split-complementary
#281A9A #9A681A #4C9A1A
monochromatic
#0D0831 #1A1166 #281A9A #3623CE #5E4DE1

Accessibility & contrast

On white

12.32
#281A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#281A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A9A
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A9A#FFFFFF#000000##FFFFFF
##281A9A1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9D
Deuteranopia (green-blind)
#002F98
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #281a9a;
/* rgb */ color: rgb(40, 26, 154);
/* oklch */ color: oklch(34.8% 0.191 274.9);
Tailwind
colors: {
  custom: {
    50: '#765bb9',
    500: '#281a9a',
    950: '#000000',
  },
}
SCSS
$custom: #281a9a;
$custom-light: #765bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#281a9a",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 154
  },
  "hsl": {
    "h": 246.563,
    "s": 71.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34847,
    "c": 0.19103,
    "h": 274.9
  },
  "luminance": 0.03523
}

Semantic roles & 50–950 ramp

primary
#281A9A
secondary
#B6C34D
accent
#EE3ADA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #281A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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