#281E87#281E87

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

Color values

HEX#281E87
RGBrgb(40, 30, 135)
HSLhsl(246, 64%, 32%)
HSVhsv(246, 78%, 53%)
CMYKcmyk(70.4%, 77.8%, 0%, 47.1%)
CIE-LABlab(20.55, 38.29, -56.47)
CIE-LCHlch(20.55, 68.23, 304.14°)
OKLaboklab(33.18% 0.0195 -0.1632)
OKLCHoklch(33.18% 0.164 276.8)
XYZxyz(5.7111, 3.1284, 23.2198)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E87 #7D871E
analogous
#1E4987 #281E87 #5C1E87
triadic
#281E87 #87281E #1E8728
tetradic
#281E87 #871E49 #7D871E #1E875C
square
#281E87 #871E49 #7D871E #1E875C
split-complementary
#281E87 #875C1E #49871E
monochromatic
#0A0823 #191355 #281E87 #3729B9 #5649D7

Accessibility & contrast

On white

12.92
#281E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281E87
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E87#FFFFFF#000000##FFFFFF
##281E871.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281e87;
/* rgb */ color: rgb(40, 30, 135);
/* oklch */ color: oklch(33.2% 0.164 276.8);
Tailwind
colors: {
  custom: {
    50: '#715cab',
    500: '#281e87',
    950: '#000000',
  },
}
SCSS
$custom: #281e87;
$custom-light: #715cab;
$custom-dark: #000000;
JSON
{
  "hex": "#281e87",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 245.714,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33178,
    "c": 0.16435,
    "h": 276.8
  },
  "luminance": 0.03129
}

Semantic roles & 50–950 ramp

primary
#281E87
secondary
#AEB948
accent
#E741D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281E87

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

Preview Lab → · Contrast checker → · Palette generator →

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