#281C81#281C81

#281C81 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.159 H 278.0°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#281C81
RGBrgb(40, 28, 129)
HSLhsl(247, 64%, 31%)
HSVhsv(247, 78%, 51%)
CMYKcmyk(69%, 78.3%, 0%, 49.4%)
CIE-LABlab(19.50, 37.42, -54.42)
CIE-LCHlch(19.50, 66.05, 304.51°)
OKLaboklab(32.24% 0.0221 -0.1572)
OKLCHoklch(32.24% 0.159 278)
XYZxyz(5.2515, 2.8662, 21.0411)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C81 #75811C
analogous
#1C4281 #281C81 #5A1C81
triadic
#281C81 #81281C #1C8128
tetradic
#281C81 #811C42 #75811C #1C815A
square
#281C81 #811C42 #75811C #1C815A
split-complementary
#281C81 #815A1C #42811C
monochromatic
#09061C #18114F #281C81 #3827B3 #5342D6

Accessibility & contrast

On white

13.35
#281C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#281C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C81
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C81#FFFFFF#000000##FFFFFF
##281C811.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #281c81;
/* rgb */ color: rgb(40, 28, 129);
/* oklch */ color: oklch(32.2% 0.159 278.0);
Tailwind
colors: {
  custom: {
    50: '#705aa7',
    500: '#281c81',
    950: '#000000',
  },
}
SCSS
$custom: #281c81;
$custom-light: #705aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#281c81",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 247.129,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32242,
    "c": 0.15876,
    "h": 278
  },
  "luminance": 0.02867
}

Semantic roles & 50–950 ramp

primary
#281C81
secondary
#A7B444
accent
#E740D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #281C81

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

Preview Lab → · Contrast checker → · Palette generator →

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