#281F87#281F87

#281F87 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.163 H 276.7°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#281F87
RGBrgb(40, 31, 135)
HSLhsl(245, 63%, 33%)
HSVhsv(245, 77%, 53%)
CMYKcmyk(70.4%, 77%, 0%, 47.1%)
CIE-LABlab(20.75, 37.73, -56.14)
CIE-LCHlch(20.75, 67.64, 303.90°)
OKLaboklab(33.32% 0.0189 -0.1622)
OKLCHoklch(33.32% 0.163 276.7)
XYZxyz(5.7368, 3.1798, 23.2284)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F87 #7E871F
analogous
#1F4A87 #281F87 #5C1F87
triadic
#281F87 #87281F #1F8728
tetradic
#281F87 #871F4A #7E871F #1F875C
square
#281F87 #871F4A #7E871F #1F875C
split-complementary
#281F87 #875C1F #4A871F
monochromatic
#0B0823 #191455 #281F87 #372AB9 #574BD6

Accessibility & contrast

On white

12.84
#281F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#281F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F87
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F87#FFFFFF#000000##FFFFFF
##281F871.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #281f87;
/* rgb */ color: rgb(40, 31, 135);
/* oklch */ color: oklch(33.3% 0.163 276.7);
Tailwind
colors: {
  custom: {
    50: '#715dab',
    500: '#281f87',
    950: '#000000',
  },
}
SCSS
$custom: #281f87;
$custom-light: #715dab;
$custom-dark: #000000;
JSON
{
  "hex": "#281f87",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 245.192,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33319,
    "c": 0.16334,
    "h": 276.7
  },
  "luminance": 0.0318
}

Semantic roles & 50–950 ramp

primary
#281F87
secondary
#AFB84A
accent
#E642D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281F87

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

Preview Lab → · Contrast checker → · Palette generator →

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