#281A8B#281A8B

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

Color values

HEX#281A8B
RGBrgb(40, 26, 139)
HSLhsl(247, 68%, 32%)
HSVhsv(247, 81%, 55%)
CMYKcmyk(71.2%, 81.3%, 0%, 45.5%)
CIE-LABlab(20.26, 41.73, -59.46)
CIE-LCHlch(20.26, 72.65, 305.06°)
OKLaboklab(33.11% 0.0205 -0.1718)
OKLCHoklch(33.11% 0.173 276.8)
XYZxyz(5.9031, 3.0534, 24.6994)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A8B #7D8B1A
analogous
#1A448B #281A8B #611A8B
triadic
#281A8B #8B281A #1A8B28
tetradic
#281A8B #8B1A44 #7D8B1A #1A8B61
square
#281A8B #8B1A44 #7D8B1A #1A8B61
split-complementary
#281A8B #8B611A #448B1A
monochromatic
#0A0724 #191057 #281A8B #3724BF #5643DC

Accessibility & contrast

On white

13.04
#281A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#281A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A8B
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A8B#FFFFFF#000000##FFFFFF
##281A8B1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002C89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #281a8b;
/* rgb */ color: rgb(40, 26, 139);
/* oklch */ color: oklch(33.1% 0.173 276.8);
Tailwind
colors: {
  custom: {
    50: '#725aae',
    500: '#281a8b',
    950: '#000000',
  },
}
SCSS
$custom: #281a8b;
$custom-light: #725aae;
$custom-dark: #000000;
JSON
{
  "hex": "#281a8b",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 247.434,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33105,
    "c": 0.17307,
    "h": 276.8
  },
  "luminance": 0.03054
}

Semantic roles & 50–950 ramp

primary
#281A8B
secondary
#AEBD44
accent
#EB3CD6
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #281A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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