#281D8D#281D8D

#281D8D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.173 H 276.2°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#281D8D
RGBrgb(40, 29, 141)
HSLhsl(246, 66%, 33%)
HSVhsv(246, 79%, 55%)
CMYKcmyk(71.6%, 79.4%, 0%, 44.7%)
CIE-LABlab(21.03, 40.81, -59.44)
CIE-LCHlch(21.03, 72.10, 304.47°)
OKLaboklab(33.71% 0.0185 -0.1718)
OKLCHoklch(33.71% 0.173 276.2)
XYZxyz(6.1206, 3.2524, 25.4994)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D8D #828D1D
analogous
#1D4A8D #281D8D #601D8D
triadic
#281D8D #8D281D #1D8D28
tetradic
#281D8D #8D1D4A #828D1D #1D8D60
square
#281D8D #8D1D4A #828D1D #1D8D60
split-complementary
#281D8D #8D601D #4A8D1D
monochromatic
#0B0827 #1A135A #281D8D #3627C0 #594BDA

Accessibility & contrast

On white

12.72
#281D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#281D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D8D
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D8D#FFFFFF#000000##FFFFFF
##281D8D1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #281d8d;
/* rgb */ color: rgb(40, 29, 141);
/* oklch */ color: oklch(33.7% 0.173 276.2);
Tailwind
colors: {
  custom: {
    50: '#725cb0',
    500: '#281d8d',
    950: '#000000',
  },
}
SCSS
$custom: #281d8d;
$custom-light: #725cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#281d8d",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 245.893,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33711,
    "c": 0.17282,
    "h": 276.2
  },
  "luminance": 0.03253
}

Semantic roles & 50–950 ramp

primary
#281D8D
secondary
#B1BC4A
accent
#E93FD8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #281D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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