#281A97#281A97

#281A97 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.5% C 0.187 H 275.2°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#281A97
RGBrgb(40, 26, 151)
HSLhsl(247, 71%, 35%)
HSVhsv(247, 83%, 59%)
CMYKcmyk(73.5%, 82.8%, 0%, 40.8%)
CIE-LABlab(21.67, 45.50, -64.58)
CIE-LCHlch(21.67, 79.00, 305.17°)
OKLaboklab(34.49% 0.0171 -0.1867)
OKLCHoklch(34.49% 0.187 275.2)
XYZxyz(6.8285, 3.4236, 29.5731)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A97 #89971A
analogous
#1A4B97 #281A97 #671A97
triadic
#281A97 #97281A #1A9728
tetradic
#281A97 #971A4B #89971A #1A9767
square
#281A97 #971A4B #89971A #1A9767
split-complementary
#281A97 #97671A #4B971A
monochromatic
#0C082F #1A1163 #281A97 #3623CB #5C4BE0

Accessibility & contrast

On white

12.46
#281A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#281A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A97
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A97#FFFFFF#000000##FFFFFF
##281A971.0012.461.6812.46
#FFFFFF12.461.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00399A
Deuteranopia (green-blind)
#002E95
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #281a97;
/* rgb */ color: rgb(40, 26, 151);
/* oklch */ color: oklch(34.5% 0.187 275.2);
Tailwind
colors: {
  custom: {
    50: '#755bb7',
    500: '#281a97',
    950: '#000000',
  },
}
SCSS
$custom: #281a97;
$custom-light: #755bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#281a97",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 246.72,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34495,
    "c": 0.18749,
    "h": 275.2
  },
  "luminance": 0.03424
}

Semantic roles & 50–950 ramp

primary
#281A97
secondary
#B5C24B
accent
#ED3AD9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281A97

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

Preview Lab → · Contrast checker → · Palette generator →

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