#281A95#281A95

#281A95 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.185 H 275.5°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#281A95
RGBrgb(40, 26, 149)
HSLhsl(247, 70%, 34%)
HSVhsv(247, 83%, 58%)
CMYKcmyk(73.2%, 82.6%, 0%, 41.6%)
CIE-LABlab(21.43, 44.88, -63.74)
CIE-LCHlch(21.43, 77.95, 305.15°)
OKLaboklab(34.26% 0.0177 -0.1843)
OKLCHoklch(34.26% 0.185 275.5)
XYZxyz(6.6675, 3.3592, 28.7249)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A95 #87951A
analogous
#1A4A95 #281A95 #661A95
triadic
#281A95 #95281A #1A9528
tetradic
#281A95 #951A4A #87951A #1A9566
square
#281A95 #951A4A #87951A #1A9566
split-complementary
#281A95 #95661A #4A951A
monochromatic
#0C082D #1A1161 #281A95 #3623C9 #5B4ADF

Accessibility & contrast

On white

12.56
#281A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#281A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A95
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A95#FFFFFF#000000##FFFFFF
##281A951.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#002E93
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #281a95;
/* rgb */ color: rgb(40, 26, 149);
/* oklch */ color: oklch(34.3% 0.185 275.5);
Tailwind
colors: {
  custom: {
    50: '#755bb5',
    500: '#281a95',
    950: '#000000',
  },
}
SCSS
$custom: #281a95;
$custom-light: #755bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#281a95",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 149
  },
  "hsl": {
    "h": 246.829,
    "s": 70.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34261,
    "c": 0.18512,
    "h": 275.5
  },
  "luminance": 0.0336
}

Semantic roles & 50–950 ramp

primary
#281A95
secondary
#B4C14A
accent
#ED3BD9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281A95

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

Preview Lab → · Contrast checker → · Palette generator →

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