#281D8B#281D8B

#281D8B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.170 H 276.4°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#281D8B
RGBrgb(40, 29, 139)
HSLhsl(246, 65%, 33%)
HSVhsv(246, 79%, 55%)
CMYKcmyk(71.2%, 79.1%, 0%, 45.5%)
CIE-LABlab(20.80, 40.16, -58.56)
CIE-LCHlch(20.80, 71.01, 304.44°)
OKLaboklab(33.49% 0.019 -0.1693)
OKLCHoklch(33.49% 0.17 276.4)
XYZxyz(5.9731, 3.1934, 24.7227)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D8B #808B1D
analogous
#1D498B #281D8B #5F1D8B
triadic
#281D8B #8B281D #1D8B28
tetradic
#281D8B #8B1D49 #808B1D #1D8B5F
square
#281D8B #8B1D49 #808B1D #1D8B5F
split-complementary
#281D8B #8B5F1D #498B1D
monochromatic
#0B0826 #191258 #281D8B #3728BE #5849D9

Accessibility & contrast

On white

12.81
#281D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#281D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D8B
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D8B#FFFFFF#000000##FFFFFF
##281D8B1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #281d8b;
/* rgb */ color: rgb(40, 29, 139);
/* oklch */ color: oklch(33.5% 0.170 276.4);
Tailwind
colors: {
  custom: {
    50: '#725cae',
    500: '#281d8b',
    950: '#000000',
  },
}
SCSS
$custom: #281d8b;
$custom-light: #725cae;
$custom-dark: #000000;
JSON
{
  "hex": "#281d8b",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 246,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33486,
    "c": 0.17034,
    "h": 276.4
  },
  "luminance": 0.03194
}

Semantic roles & 50–950 ramp

primary
#281D8B
secondary
#B0BB49
accent
#E83FD8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #281D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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