#281B8D#281B8D

#281B8D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.175 H 276.4°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#281B8D
RGBrgb(40, 27, 141)
HSLhsl(247, 68%, 33%)
HSVhsv(247, 81%, 55%)
CMYKcmyk(71.6%, 80.9%, 0%, 44.7%)
CIE-LABlab(20.66, 41.86, -60.04)
CIE-LCHlch(20.66, 73.19, 304.88°)
OKLaboklab(33.46% 0.0195 -0.1735)
OKLCHoklch(33.46% 0.175 276.4)
XYZxyz(6.0732, 3.1575, 25.4835)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B8D #808D1B
analogous
#1B478D #281B8D #611B8D
triadic
#281B8D #8D281B #1B8D28
tetradic
#281B8D #8D1B47 #808D1B #1B8D61
square
#281B8D #8D1B47 #808D1B #1B8D61
split-complementary
#281B8D #8D611B #478D1B
monochromatic
#0B0726 #19115A #281B8D #3725C0 #5847DC

Accessibility & contrast

On white

12.87
#281B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281B8D
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B8D#FFFFFF#000000##FFFFFF
##281B8D1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281b8d;
/* rgb */ color: rgb(40, 27, 141);
/* oklch */ color: oklch(33.5% 0.175 276.4);
Tailwind
colors: {
  custom: {
    50: '#735bb0',
    500: '#281b8d',
    950: '#000000',
  },
}
SCSS
$custom: #281b8d;
$custom-light: #735bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#281b8d",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 246.842,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33457,
    "c": 0.17463,
    "h": 276.4
  },
  "luminance": 0.03158
}

Semantic roles & 50–950 ramp

primary
#281B8D
secondary
#B0BD46
accent
#EB3DD7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #281B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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