#281D71#281D71

#281D71 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.137 H 280.6°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#281D71
RGBrgb(40, 29, 113)
HSLhsl(248, 59%, 28%)
HSVhsv(248, 74%, 44%)
CMYKcmyk(64.6%, 74.3%, 0%, 55.7%)
CIE-LABlab(18.02, 31.46, -46.63)
CIE-LCHlch(18.02, 56.24, 304.00°)
OKLaboklab(30.68% 0.0251 -0.1344)
OKLCHoklch(30.68% 0.137 280.6)
XYZxyz(4.2941, 2.5218, 15.8800)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D71 #66711D
analogous
#1D3C71 #281D71 #521D71
triadic
#281D71 #71281D #1D7128
tetradic
#281D71 #711D3C #66711D #1D7152
square
#281D71 #711D3C #66711D #1D7152
split-complementary
#281D71 #71521D #3C711D
monochromatic
#090618 #171140 #281D71 #3929A2 #4F3CCD

Accessibility & contrast

On white

13.96
#281D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#281D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D71
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D71#FFFFFF#000000##FFFFFF
##281D711.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#003445
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #281d71;
/* rgb */ color: rgb(40, 29, 113);
/* oklch */ color: oklch(30.7% 0.137 280.6);
Tailwind
colors: {
  custom: {
    50: '#6c5a9b',
    500: '#281d71',
    950: '#000000',
  },
}
SCSS
$custom: #281d71;
$custom-light: #6c5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#281d71",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 247.857,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30683,
    "c": 0.13678,
    "h": 280.6
  },
  "luminance": 0.02522
}

Semantic roles & 50–950 ramp

primary
#281D71
secondary
#99A544
accent
#E245CE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #281D71

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

Preview Lab → · Contrast checker → · Palette generator →

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