#281B82#281B82

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

Color values

HEX#281B82
RGBrgb(40, 27, 130)
HSLhsl(248, 66%, 31%)
HSVhsv(248, 79%, 51%)
CMYKcmyk(69.2%, 79.2%, 0%, 49%)
CIE-LABlab(19.42, 38.30, -55.19)
CIE-LCHlch(19.42, 67.18, 304.76°)
OKLaboklab(32.22% 0.0225 -0.1594)
OKLCHoklch(32.22% 0.161 278)
XYZxyz(5.2950, 2.8462, 21.3851)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B82 #75821B
analogous
#1B4182 #281B82 #5B1B82
triadic
#281B82 #82281B #1B8228
tetradic
#281B82 #821B41 #75821B #1B825B
square
#281B82 #821B41 #75821B #1B825B
split-complementary
#281B82 #825B1B #41821B
monochromatic
#09061D #18104F #281B82 #3826B5 #5340D7

Accessibility & contrast

On white

13.38
#281B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281B82
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B82#FFFFFF#000000##FFFFFF
##281B821.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002B80
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #281b82;
/* rgb */ color: rgb(40, 27, 130);
/* oklch */ color: oklch(32.2% 0.161 278.0);
Tailwind
colors: {
  custom: {
    50: '#705aa7',
    500: '#281b82',
    950: '#000000',
  },
}
SCSS
$custom: #281b82;
$custom-light: #705aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#281b82",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 247.573,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32217,
    "c": 0.16101,
    "h": 278
  },
  "luminance": 0.02847
}

Semantic roles & 50–950 ramp

primary
#281B82
secondary
#A7B643
accent
#E93FD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281B82

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

Preview Lab → · Contrast checker → · Palette generator →

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