#281D88#281D88

#281D88 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.2% C 0.167 H 276.8°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#281D88
RGBrgb(40, 29, 136)
HSLhsl(246, 65%, 32%)
HSVhsv(246, 79%, 53%)
CMYKcmyk(70.6%, 78.7%, 0%, 46.7%)
CIE-LABlab(20.47, 39.17, -57.24)
CIE-LCHlch(20.47, 69.36, 304.39°)
OKLaboklab(33.15% 0.0198 -0.1654)
OKLCHoklch(33.15% 0.167 276.8)
XYZxyz(5.7569, 3.1069, 23.5841)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D88 #7D881D
analogous
#1D4888 #281D88 #5D1D88
triadic
#281D88 #88281D #1D8828
tetradic
#281D88 #881D48 #7D881D #1D885D
square
#281D88 #881D48 #7D881D #1D885D
split-complementary
#281D88 #885D1D #48881D
monochromatic
#0A0723 #191256 #281D88 #3728BA #5648D8

Accessibility & contrast

On white

12.95
#281D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#281D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D88
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D88#FFFFFF#000000##FFFFFF
##281D881.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002D86
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #281d88;
/* rgb */ color: rgb(40, 29, 136);
/* oklch */ color: oklch(33.2% 0.167 276.8);
Tailwind
colors: {
  custom: {
    50: '#715bac',
    500: '#281d88',
    950: '#000000',
  },
}
SCSS
$custom: #281d88;
$custom-light: #715bac;
$custom-dark: #000000;
JSON
{
  "hex": "#281d88",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 246.168,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33152,
    "c": 0.16659,
    "h": 276.8
  },
  "luminance": 0.03107
}

Semantic roles & 50–950 ramp

primary
#281D88
secondary
#AEBA47
accent
#E840D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281D88

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

Preview Lab → · Contrast checker → · Palette generator →

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