#281D8C#281D8C

#281D8C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.172 H 276.3°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#281D8C
RGBrgb(40, 29, 140)
HSLhsl(246, 66%, 33%)
HSVhsv(246, 79%, 55%)
CMYKcmyk(71.4%, 79.3%, 0%, 45.1%)
CIE-LABlab(20.91, 40.48, -59.00)
CIE-LCHlch(20.91, 71.55, 304.46°)
OKLaboklab(33.6% 0.0188 -0.1705)
OKLCHoklch(33.6% 0.172 276.3)
XYZxyz(6.0465, 3.2227, 25.1093)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D8C #818C1D
analogous
#1D498C #281D8C #5F1D8C
triadic
#281D8C #8C281D #1D8C28
tetradic
#281D8C #8C1D49 #818C1D #1D8C5F
square
#281D8C #8C1D49 #818C1D #1D8C5F
split-complementary
#281D8C #8C5F1D #498C1D
monochromatic
#0B0827 #1A1259 #281D8C #3628BF #584AD9

Accessibility & contrast

On white

12.77
#281D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281D8C
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D8C#FFFFFF#000000##FFFFFF
##281D8C1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #281d8c;
/* rgb */ color: rgb(40, 29, 140);
/* oklch */ color: oklch(33.6% 0.172 276.3);
Tailwind
colors: {
  custom: {
    50: '#725caf',
    500: '#281d8c',
    950: '#000000',
  },
}
SCSS
$custom: #281d8c;
$custom-light: #725caf;
$custom-dark: #000000;
JSON
{
  "hex": "#281d8c",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 140
  },
  "hsl": {
    "h": 245.946,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33598,
    "c": 0.17158,
    "h": 276.3
  },
  "luminance": 0.03223
}

Semantic roles & 50–950 ramp

primary
#281D8C
secondary
#B0BC49
accent
#E93FD8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #281D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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