#281E88#281E88

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

Color values

HEX#281E88
RGBrgb(40, 30, 136)
HSLhsl(246, 64%, 33%)
HSVhsv(246, 78%, 53%)
CMYKcmyk(70.6%, 77.9%, 0%, 46.7%)
CIE-LABlab(20.66, 38.62, -56.92)
CIE-LCHlch(20.66, 68.78, 304.16°)
OKLaboklab(33.29% 0.0193 -0.1645)
OKLCHoklch(33.29% 0.166 276.7)
XYZxyz(5.7818, 3.1567, 23.5924)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E88 #7E881E
analogous
#1E4988 #281E88 #5D1E88
triadic
#281E88 #88281E #1E8828
tetradic
#281E88 #881E49 #7E881E #1E885D
square
#281E88 #881E49 #7E881E #1E885D
split-complementary
#281E88 #885D1E #49881E
monochromatic
#0B0824 #191356 #281E88 #3729BA #5749D7

Accessibility & contrast

On white

12.87
#281E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281E88
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E88#FFFFFF#000000##FFFFFF
##281E881.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002D86
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #281e88;
/* rgb */ color: rgb(40, 30, 136);
/* oklch */ color: oklch(33.3% 0.166 276.7);
Tailwind
colors: {
  custom: {
    50: '#715cac',
    500: '#281e88',
    950: '#000000',
  },
}
SCSS
$custom: #281e88;
$custom-light: #715cac;
$custom-dark: #000000;
JSON
{
  "hex": "#281e88",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 136
  },
  "hsl": {
    "h": 245.66,
    "s": 63.855,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33288,
    "c": 0.16561,
    "h": 276.7
  },
  "luminance": 0.03157
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281E88

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

Preview Lab → · Contrast checker → · Palette generator →

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