#281A79#281A79

#281A79 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.151 H 279.7°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#281A79
RGBrgb(40, 26, 121)
HSLhsl(249, 65%, 29%)
HSVhsv(249, 79%, 47%)
CMYKcmyk(66.9%, 78.5%, 0%, 52.5%)
CIE-LABlab(18.23, 35.90, -51.42)
CIE-LCHlch(18.23, 62.71, 304.92°)
OKLaboklab(31.09% 0.0254 -0.1484)
OKLCHoklch(31.09% 0.151 279.7)
XYZxyz(4.6946, 2.5700, 18.3341)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A79 #6B791A
analogous
#1A3C79 #281A79 #581A79
triadic
#281A79 #79281A #1A7928
tetradic
#281A79 #791A3C #6B791A #1A7958
square
#281A79 #791A3C #6B791A #1A7958
split-complementary
#281A79 #79581A #3C791A
monochromatic
#080519 #170F47 #281A79 #3925AB #5039D4

Accessibility & contrast

On white

13.87
#281A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#281A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A79
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A79#FFFFFF#000000##FFFFFF
##281A791.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #281a79;
/* rgb */ color: rgb(40, 26, 121);
/* oklch */ color: oklch(31.1% 0.151 279.7);
Tailwind
colors: {
  custom: {
    50: '#6e59a1',
    500: '#281a79',
    950: '#000000',
  },
}
SCSS
$custom: #281a79;
$custom-light: #6e59a1;
$custom-dark: #000000;
JSON
{
  "hex": "#281a79",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 248.842,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31089,
    "c": 0.15059,
    "h": 279.7
  },
  "luminance": 0.0257
}

Semantic roles & 50–950 ramp

primary
#281A79
secondary
#9DAD41
accent
#E840CF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #281A79

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

Preview Lab → · Contrast checker → · Palette generator →

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