#281D78#281D78

#281D78 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.146 H 279.3°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#281D78
RGBrgb(40, 29, 120)
HSLhsl(247, 61%, 29%)
HSVhsv(247, 76%, 47%)
CMYKcmyk(66.7%, 75.8%, 0%, 52.9%)
CIE-LABlab(18.74, 33.84, -49.95)
CIE-LCHlch(18.74, 60.33, 304.12°)
OKLaboklab(31.41% 0.0236 -0.1442)
OKLCHoklch(31.41% 0.146 279.3)
XYZxyz(4.7035, 2.6855, 18.0362)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D78 #6D781D
analogous
#1D4078 #281D78 #561D78
triadic
#281D78 #78281D #1D7828
tetradic
#281D78 #781D40 #6D781D #1D7856
square
#281D78 #781D40 #6D781D #1D7856
split-complementary
#281D78 #78561D #40781D
monochromatic
#080619 #181147 #281D78 #3829A9 #503FD1

Accessibility & contrast

On white

13.66
#281D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#281D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D78
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D78#FFFFFF#000000##FFFFFF
##281D781.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002A76
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281d78;
/* rgb */ color: rgb(40, 29, 120);
/* oklch */ color: oklch(31.4% 0.146 279.3);
Tailwind
colors: {
  custom: {
    50: '#6e5ba0',
    500: '#281d78',
    950: '#000000',
  },
}
SCSS
$custom: #281d78;
$custom-light: #6e5ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#281d78",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 247.253,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31414,
    "c": 0.14608,
    "h": 279.3
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#281D78
secondary
#9FAC45
accent
#E444D1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #281D78

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

Preview Lab → · Contrast checker → · Palette generator →

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