#281E8B#281E8B

#281E8B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.169 H 276.3°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#281E8B
RGBrgb(40, 30, 139)
HSLhsl(246, 64%, 33%)
HSVhsv(246, 78%, 55%)
CMYKcmyk(71.2%, 78.4%, 0%, 45.5%)
CIE-LABlab(20.99, 39.61, -58.25)
CIE-LCHlch(20.99, 70.44, 304.22°)
OKLaboklab(33.62% 0.0185 -0.1684)
OKLCHoklch(33.62% 0.169 276.3)
XYZxyz(5.9980, 3.2432, 24.7310)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E8B #818B1E
analogous
#1E4A8B #281E8B #5F1E8B
triadic
#281E8B #8B281E #1E8B28
tetradic
#281E8B #8B1E4A #818B1E #1E8B5F
square
#281E8B #8B1E4A #818B1E #1E8B5F
split-complementary
#281E8B #8B5F1E #4A8B1E
monochromatic
#0B0826 #1A1359 #281E8B #3629BD #584BD8

Accessibility & contrast

On white

12.74
#281E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#281E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E8B
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E8B#FFFFFF#000000##FFFFFF
##281E8B1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #281e8b;
/* rgb */ color: rgb(40, 30, 139);
/* oklch */ color: oklch(33.6% 0.169 276.3);
Tailwind
colors: {
  custom: {
    50: '#725cae',
    500: '#281e8b',
    950: '#000000',
  },
}
SCSS
$custom: #281e8b;
$custom-light: #725cae;
$custom-dark: #000000;
JSON
{
  "hex": "#281e8b",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 245.505,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3362,
    "c": 0.16938,
    "h": 276.3
  },
  "luminance": 0.03244
}

Semantic roles & 50–950 ramp

primary
#281E8B
secondary
#B0BB4A
accent
#E740D8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #281E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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