#281A78#281A78

#281A78 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.0% C 0.149 H 279.9°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#281A78
RGBrgb(40, 26, 120)
HSLhsl(249, 64%, 29%)
HSVhsv(249, 78%, 47%)
CMYKcmyk(66.7%, 78.3%, 0%, 52.9%)
CIE-LABlab(18.12, 35.57, -50.96)
CIE-LCHlch(18.12, 62.14, 304.92°)
OKLaboklab(30.98% 0.0257 -0.1471)
OKLCHoklch(30.98% 0.149 279.9)
XYZxyz(4.6336, 2.5456, 18.0128)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A78 #6A781A
analogous
#1A3B78 #281A78 #571A78
triadic
#281A78 #78281A #1A7828
tetradic
#281A78 #781A3B #6A781A #1A7857
square
#281A78 #781A3B #6A781A #1A7857
split-complementary
#281A78 #78571A #3B781A
monochromatic
#080519 #170F46 #281A78 #3925AA #5038D4

Accessibility & contrast

On white

13.91
#281A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281A78
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A78#FFFFFF#000000##FFFFFF
##281A781.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281a78;
/* rgb */ color: rgb(40, 26, 120);
/* oklch */ color: oklch(31.0% 0.149 279.9);
Tailwind
colors: {
  custom: {
    50: '#6e59a0',
    500: '#281a78',
    950: '#000000',
  },
}
SCSS
$custom: #281a78;
$custom-light: #6e59a0;
$custom-dark: #000000;
JSON
{
  "hex": "#281a78",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 248.936,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3098,
    "c": 0.14932,
    "h": 279.9
  },
  "luminance": 0.02546
}

Semantic roles & 50–950 ramp

primary
#281A78
secondary
#9DAC41
accent
#E740CF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #281A78

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

Preview Lab → · Contrast checker → · Palette generator →

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