#281C8A#281C8A

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

Color values

HEX#281C8A
RGBrgb(40, 28, 138)
HSLhsl(247, 66%, 33%)
HSVhsv(247, 80%, 54%)
CMYKcmyk(71%, 79.7%, 0%, 45.9%)
CIE-LABlab(20.50, 40.37, -58.43)
CIE-LCHlch(20.50, 71.02, 304.64°)
OKLaboklab(33.24% 0.0198 -0.1689)
OKLCHoklch(33.24% 0.17 276.7)
XYZxyz(5.8763, 3.1161, 24.3316)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C8A #7E8A1C
analogous
#1C478A #281C8A #5F1C8A
triadic
#281C8A #8A281C #1C8A28
tetradic
#281C8A #8A1C47 #7E8A1C #1C8A5F
square
#281C8A #8A1C47 #7E8A1C #1C8A5F
split-complementary
#281C8A #8A5F1C #478A1C
monochromatic
#0B0724 #191257 #281C8A #3726BD #5747DA

Accessibility & contrast

On white

12.94
#281C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281C8A
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C8A#FFFFFF#000000##FFFFFF
##281C8A1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281c8a;
/* rgb */ color: rgb(40, 28, 138);
/* oklch */ color: oklch(33.2% 0.170 276.7);
Tailwind
colors: {
  custom: {
    50: '#725bad',
    500: '#281c8a',
    950: '#000000',
  },
}
SCSS
$custom: #281c8a;
$custom-light: #725bad;
$custom-dark: #000000;
JSON
{
  "hex": "#281c8a",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 246.545,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33243,
    "c": 0.17004,
    "h": 276.7
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

primary
#281C8A
secondary
#AFBB46
accent
#E93FD7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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