#281C8B#281C8B

#281C8B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.4% C 0.171 H 276.6°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#281C8B
RGBrgb(40, 28, 139)
HSLhsl(246, 66%, 33%)
HSVhsv(246, 80%, 55%)
CMYKcmyk(71.2%, 79.9%, 0%, 45.5%)
CIE-LABlab(20.62, 40.69, -58.87)
CIE-LCHlch(20.62, 71.56, 304.65°)
OKLaboklab(33.36% 0.0195 -0.1701)
OKLCHoklch(33.36% 0.171 276.6)
XYZxyz(5.9490, 3.1452, 24.7147)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C8B #7F8B1C
analogous
#1C488B #281C8B #5F1C8B
triadic
#281C8B #8B281C #1C8B28
tetradic
#281C8B #8B1C48 #7F8B1C #1C8B5F
square
#281C8B #8B1C48 #7F8B1C #1C8B5F
split-complementary
#281C8B #8B5F1C #488B1C
monochromatic
#0B0725 #191258 #281C8B #3726BE #5747DA

Accessibility & contrast

On white

12.89
#281C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#281C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C8B
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C8B#FFFFFF#000000##FFFFFF
##281C8B1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #281c8b;
/* rgb */ color: rgb(40, 28, 139);
/* oklch */ color: oklch(33.4% 0.171 276.6);
Tailwind
colors: {
  custom: {
    50: '#725bae',
    500: '#281c8b',
    950: '#000000',
  },
}
SCSS
$custom: #281c8b;
$custom-light: #725bae;
$custom-dark: #000000;
JSON
{
  "hex": "#281c8b",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 246.486,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33356,
    "c": 0.17127,
    "h": 276.6
  },
  "luminance": 0.03146
}

Semantic roles & 50–950 ramp

primary
#281C8B
secondary
#AFBC47
accent
#E93ED7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #281C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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