#281D81#281D81

#281D81 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.158 H 277.8°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#281D81
RGBrgb(40, 29, 129)
HSLhsl(247, 63%, 31%)
HSVhsv(247, 78%, 51%)
CMYKcmyk(69%, 77.5%, 0%, 49.4%)
CIE-LABlab(19.70, 36.86, -54.10)
CIE-LCHlch(19.70, 65.46, 304.27°)
OKLaboklab(32.38% 0.0215 -0.1563)
OKLCHoklch(32.38% 0.158 277.8)
XYZxyz(5.2756, 2.9144, 21.0491)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D81 #76811D
analogous
#1D4481 #281D81 #5A1D81
triadic
#281D81 #81281D #1D8128
tetradic
#281D81 #811D44 #76811D #1D815A
square
#281D81 #811D44 #76811D #1D815A
split-complementary
#281D81 #815A1D #44811D
monochromatic
#09071D #19124F #281D81 #3728B3 #5444D5

Accessibility & contrast

On white

13.27
#281D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#281D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D81
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D81#FFFFFF#000000##FFFFFF
##281D811.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #281d81;
/* rgb */ color: rgb(40, 29, 129);
/* oklch */ color: oklch(32.4% 0.158 277.8);
Tailwind
colors: {
  custom: {
    50: '#705ba7',
    500: '#281d81',
    950: '#000000',
  },
}
SCSS
$custom: #281d81;
$custom-light: #705ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#281d81",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 129
  },
  "hsl": {
    "h": 246.6,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32382,
    "c": 0.15774,
    "h": 277.8
  },
  "luminance": 0.02915
}

Semantic roles & 50–950 ramp

primary
#281D81
secondary
#A8B446
accent
#E641D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #281D81

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

Preview Lab → · Contrast checker → · Palette generator →

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