#281B96#281B96

#281B96 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.5% C 0.185 H 275.3°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#281B96
RGBrgb(40, 27, 150)
HSLhsl(246, 69%, 35%)
HSVhsv(246, 82%, 59%)
CMYKcmyk(73.3%, 82%, 0%, 41.2%)
CIE-LABlab(21.71, 44.71, -63.89)
CIE-LCHlch(21.71, 77.98, 304.99°)
OKLaboklab(34.49% 0.017 -0.1847)
OKLCHoklch(34.49% 0.185 275.3)
XYZxyz(6.7702, 3.4363, 29.1547)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B96 #89961B
analogous
#1B4C96 #281B96 #651B96
triadic
#281B96 #96281B #1B9628
tetradic
#281B96 #961B4C #89961B #1B9665
square
#281B96 #961B4C #89961B #1B9665
split-complementary
#281B96 #96651B #4C961B
monochromatic
#0C082E #1A1262 #281B96 #3624CA #5C4DDF

Accessibility & contrast

On white

12.45
#281B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#281B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B96
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B96#FFFFFF#000000##FFFFFF
##281B961.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003999
Deuteranopia (green-blind)
#002E94
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #281b96;
/* rgb */ color: rgb(40, 27, 150);
/* oklch */ color: oklch(34.5% 0.185 275.3);
Tailwind
colors: {
  custom: {
    50: '#755bb6',
    500: '#281b96',
    950: '#000000',
  },
}
SCSS
$custom: #281b96;
$custom-light: #755bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#281b96",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 246.341,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34493,
    "c": 0.18549,
    "h": 275.3
  },
  "luminance": 0.03437
}

Semantic roles & 50–950 ramp

primary
#281B96
secondary
#B5C14C
accent
#EC3BDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281B96

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

Preview Lab → · Contrast checker → · Palette generator →

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