#281D72#281D72

#281D72 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.138 H 280.4°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#281D72
RGBrgb(40, 29, 114)
HSLhsl(248, 59%, 28%)
HSVhsv(248, 75%, 45%)
CMYKcmyk(64.9%, 74.6%, 0%, 55.3%)
CIE-LABlab(18.12, 31.80, -47.11)
CIE-LCHlch(18.12, 56.83, 304.02°)
OKLaboklab(30.79% 0.0249 -0.1358)
OKLCHoklch(30.79% 0.138 280.4)
XYZxyz(4.3507, 2.5444, 16.1782)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D72 #67721D
analogous
#1D3C72 #281D72 #521D72
triadic
#281D72 #72281D #1D7228
tetradic
#281D72 #721D3C #67721D #1D7252
square
#281D72 #721D3C #67721D #1D7252
split-complementary
#281D72 #72521D #3C721D
monochromatic
#090618 #171141 #281D72 #3929A3 #4F3CCD

Accessibility & contrast

On white

13.92
#281D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#281D72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D72
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D72#FFFFFF#000000##FFFFFF
##281D721.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#003445
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #281d72;
/* rgb */ color: rgb(40, 29, 114);
/* oklch */ color: oklch(30.8% 0.138 280.4);
Tailwind
colors: {
  custom: {
    50: '#6c5a9b',
    500: '#281d72',
    950: '#000000',
  },
}
SCSS
$custom: #281d72;
$custom-light: #6c5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#281d72",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 114
  },
  "hsl": {
    "h": 247.765,
    "s": 59.441,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30786,
    "c": 0.13812,
    "h": 280.4
  },
  "luminance": 0.02545
}

Semantic roles & 50–950 ramp

primary
#281D72
secondary
#9AA645
accent
#E345CE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #281D72

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

Preview Lab → · Contrast checker → · Palette generator →

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