#281AA1#281AA1

#281AA1 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.199 H 274.1°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#281AA1
RGBrgb(40, 26, 161)
HSLhsl(246, 72%, 37%)
HSVhsv(246, 84%, 63%)
CMYKcmyk(75.2%, 83.9%, 0%, 36.9%)
CIE-LABlab(22.87, 48.58, -68.71)
CIE-LCHlch(22.87, 84.15, 305.26°)
OKLaboklab(35.67% 0.0143 -0.1987)
OKLCHoklch(35.67% 0.199 274.1)
XYZxyz(7.6754, 3.7623, 34.0330)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281AA1 #93A11A
analogous
#1A50A1 #281AA1 #6C1AA1
triadic
#281AA1 #A1281A #1AA128
tetradic
#281AA1 #A11A50 #93A11A #1AA16C
square
#281AA1 #A11A50 #93A11A #1AA16C
split-complementary
#281AA1 #A16C1A #50A11A
monochromatic
#0E0938 #1B116C #281AA1 #3523D6 #6152E3

Accessibility & contrast

On white

11.98
#281AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#281AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281AA1
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281AA1#FFFFFF#000000##FFFFFF
##281AA11.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA5
Deuteranopia (green-blind)
#00309F
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #281aa1;
/* rgb */ color: rgb(40, 26, 161);
/* oklch */ color: oklch(35.7% 0.199 274.1);
Tailwind
colors: {
  custom: {
    50: '#785cbe',
    500: '#281aa1',
    950: '#000000',
  },
}
SCSS
$custom: #281aa1;
$custom-light: #785cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#281aa1",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 246.222,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35674,
    "c": 0.19921,
    "h": 274.1
  },
  "luminance": 0.03763
}

Semantic roles & 50–950 ramp

primary
#281AA1
secondary
#BAC651
accent
#EF39DC
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #281AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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