#281F86#281F86

#281F86 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.162 H 276.8°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#281F86
RGBrgb(40, 31, 134)
HSLhsl(245, 62%, 32%)
HSVhsv(245, 77%, 53%)
CMYKcmyk(70.1%, 76.9%, 0%, 47.5%)
CIE-LABlab(20.64, 37.39, -55.69)
CIE-LCHlch(20.64, 67.08, 303.88°)
OKLaboklab(33.21% 0.0192 -0.1609)
OKLCHoklch(33.21% 0.162 276.8)
XYZxyz(5.6667, 3.1518, 22.8594)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F86 #7D861F
analogous
#1F4986 #281F86 #5C1F86
triadic
#281F86 #86281F #1F8628
tetradic
#281F86 #861F49 #7D861F #1F865C
square
#281F86 #861F49 #7D861F #1F865C
split-complementary
#281F86 #865C1F #49861F
monochromatic
#0A0823 #191454 #281F86 #372AB8 #564AD5

Accessibility & contrast

On white

12.88
#281F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281F86
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F86#FFFFFF#000000##FFFFFF
##281F861.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #281f86;
/* rgb */ color: rgb(40, 31, 134);
/* oklch */ color: oklch(33.2% 0.162 276.8);
Tailwind
colors: {
  custom: {
    50: '#715daa',
    500: '#281f86',
    950: '#000000',
  },
}
SCSS
$custom: #281f86;
$custom-light: #715daa;
$custom-dark: #000000;
JSON
{
  "hex": "#281f86",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 245.243,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3321,
    "c": 0.16207,
    "h": 276.8
  },
  "luminance": 0.03152
}

Semantic roles & 50–950 ramp

primary
#281F86
secondary
#AEB849
accent
#E542D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281F86

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

Preview Lab → · Contrast checker → · Palette generator →

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