#281A82#281A82

#281A82 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.162 H 278.2°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#281A82
RGBrgb(40, 26, 130)
HSLhsl(248, 67%, 31%)
HSVhsv(248, 80%, 51%)
CMYKcmyk(69.2%, 80%, 0%, 49%)
CIE-LABlab(19.23, 38.84, -55.50)
CIE-LCHlch(19.23, 67.74, 304.98°)
OKLaboklab(32.09% 0.023 -0.1603)
OKLCHoklch(32.09% 0.162 278.2)
XYZxyz(5.2724, 2.8012, 21.3776)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A82 #74821A
analogous
#1A4082 #281A82 #5C1A82
triadic
#281A82 #82281A #1A8228
tetradic
#281A82 #821A40 #74821A #1A825C
square
#281A82 #821A40 #74821A #1A825C
split-complementary
#281A82 #825C1A #40821A
monochromatic
#09061C #18104F #281A82 #3824B5 #533ED8

Accessibility & contrast

On white

13.46
#281A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#281A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A82
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A82#FFFFFF#000000##FFFFFF
##281A821.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281a82;
/* rgb */ color: rgb(40, 26, 130);
/* oklch */ color: oklch(32.1% 0.162 278.2);
Tailwind
colors: {
  custom: {
    50: '#7059a7',
    500: '#281a82',
    950: '#000000',
  },
}
SCSS
$custom: #281a82;
$custom-light: #7059a7;
$custom-dark: #000000;
JSON
{
  "hex": "#281a82",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 248.077,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32085,
    "c": 0.16197,
    "h": 278.2
  },
  "luminance": 0.02802
}

Semantic roles & 50–950 ramp

primary
#281A82
secondary
#A6B642
accent
#EA3ED3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281A82

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

Preview Lab → · Contrast checker → · Palette generator →

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