#281E89#281E89

#281E89 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.167 H 276.5°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#281E89
RGBrgb(40, 30, 137)
HSLhsl(246, 64%, 33%)
HSVhsv(246, 78%, 54%)
CMYKcmyk(70.8%, 78.1%, 0%, 46.3%)
CIE-LABlab(20.77, 38.95, -57.36)
CIE-LCHlch(20.77, 69.34, 304.18°)
OKLaboklab(33.4% 0.019 -0.1658)
OKLCHoklch(33.4% 0.167 276.5)
XYZxyz(5.8532, 3.1853, 23.9684)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E89 #7F891E
analogous
#1E4A89 #281E89 #5D1E89
triadic
#281E89 #89281E #1E8928
tetradic
#281E89 #891E4A #7F891E #1E895D
square
#281E89 #891E4A #7F891E #1E895D
split-complementary
#281E89 #895D1E #4A891E
monochromatic
#0B0825 #191357 #281E89 #3729BB #574AD7

Accessibility & contrast

On white

12.83
#281E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281E89
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E89#FFFFFF#000000##FFFFFF
##281E891.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281e89;
/* rgb */ color: rgb(40, 30, 137);
/* oklch */ color: oklch(33.4% 0.167 276.5);
Tailwind
colors: {
  custom: {
    50: '#715cad',
    500: '#281e89',
    950: '#000000',
  },
}
SCSS
$custom: #281e89;
$custom-light: #715cad;
$custom-dark: #000000;
JSON
{
  "hex": "#281e89",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 137
  },
  "hsl": {
    "h": 245.607,
    "s": 64.072,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33398,
    "c": 0.16688,
    "h": 276.5
  },
  "luminance": 0.03186
}

Semantic roles & 50–950 ramp

primary
#281E89
secondary
#AFBA49
accent
#E741D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281E89

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

Preview Lab → · Contrast checker → · Palette generator →

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