#281C8D#281C8D

#281C8D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.174 H 276.3°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#281C8D
RGBrgb(40, 28, 141)
HSLhsl(246, 67%, 33%)
HSVhsv(246, 80%, 55%)
CMYKcmyk(71.6%, 80.1%, 0%, 44.7%)
CIE-LABlab(20.84, 41.34, -59.74)
CIE-LCHlch(20.84, 72.65, 304.68°)
OKLaboklab(33.58% 0.019 -0.1727)
OKLCHoklch(33.58% 0.174 276.3)
XYZxyz(6.0965, 3.2041, 25.4913)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C8D #818D1C
analogous
#1C488D #281C8D #601C8D
triadic
#281C8D #8D281C #1C8D28
tetradic
#281C8D #8D1C48 #818D1C #1C8D60
square
#281C8D #8D1C48 #818D1C #1C8D60
split-complementary
#281C8D #8D601C #488D1C
monochromatic
#0B0827 #1A125A #281C8D #3626C0 #5849DB

Accessibility & contrast

On white

12.80
#281C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#281C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C8D
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C8D#FFFFFF#000000##FFFFFF
##281C8D1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #281c8d;
/* rgb */ color: rgb(40, 28, 141);
/* oklch */ color: oklch(33.6% 0.174 276.3);
Tailwind
colors: {
  custom: {
    50: '#735bb0',
    500: '#281c8d',
    950: '#000000',
  },
}
SCSS
$custom: #281c8d;
$custom-light: #735bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#281c8d",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 246.372,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33582,
    "c": 0.17373,
    "h": 276.3
  },
  "luminance": 0.03205
}

Semantic roles & 50–950 ramp

primary
#281C8D
secondary
#B0BD48
accent
#EA3ED8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #281C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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