#281D7D#281D7D

#281D7D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.153 H 278.5°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#281D7D
RGBrgb(40, 29, 125)
HSLhsl(247, 62%, 30%)
HSVhsv(247, 77%, 49%)
CMYKcmyk(68%, 76.8%, 0%, 51%)
CIE-LABlab(19.27, 35.52, -52.27)
CIE-LCHlch(19.27, 63.20, 304.20°)
OKLaboklab(31.95% 0.0225 -0.1509)
OKLCHoklch(31.95% 0.153 278.5)
XYZxyz(5.0149, 2.8101, 19.6762)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D7D #727D1D
analogous
#1D427D #281D7D #581D7D
triadic
#281D7D #7D281D #1D7D28
tetradic
#281D7D #7D1D42 #727D1D #1D7D58
square
#281D7D #7D1D42 #727D1D #1D7D58
split-complementary
#281D7D #7D581D #427D1D
monochromatic
#08061A #18114B #281D7D #3829AF #5241D3

Accessibility & contrast

On white

13.44
#281D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#281D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D7D
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D7D#FFFFFF#000000##FFFFFF
##281D7D1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #281d7d;
/* rgb */ color: rgb(40, 29, 125);
/* oklch */ color: oklch(31.9% 0.153 278.5);
Tailwind
colors: {
  custom: {
    50: '#6f5ba4',
    500: '#281d7d',
    950: '#000000',
  },
}
SCSS
$custom: #281d7d;
$custom-light: #6f5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#281d7d",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 246.875,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31948,
    "c": 0.15259,
    "h": 278.5
  },
  "luminance": 0.02811
}

Semantic roles & 50–950 ramp

primary
#281D7D
secondary
#A4B145
accent
#E542D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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