#281C78#281C78

#281C78 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.147 H 279.5°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#281C78
RGBrgb(40, 28, 120)
HSLhsl(248, 62%, 29%)
HSVhsv(248, 77%, 47%)
CMYKcmyk(66.7%, 76.7%, 0%, 52.9%)
CIE-LABlab(18.53, 34.42, -50.29)
CIE-LCHlch(18.53, 60.94, 304.39°)
OKLaboklab(31.27% 0.0243 -0.1451)
OKLCHoklch(31.27% 0.147 279.5)
XYZxyz(4.6794, 2.6373, 18.0281)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C78 #6C781C
analogous
#1C3E78 #281C78 #561C78
triadic
#281C78 #78281C #1C7828
tetradic
#281C78 #781C3E #6C781C #1C7856
square
#281C78 #781C3E #6C781C #1C7856
split-complementary
#281C78 #78561C #3E781C
monochromatic
#080619 #171046 #281C78 #3928AA #503DD2

Accessibility & contrast

On white

13.75
#281C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#281C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C78
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C78#FFFFFF#000000##FFFFFF
##281C781.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #281c78;
/* rgb */ color: rgb(40, 28, 120);
/* oklch */ color: oklch(31.3% 0.147 279.5);
Tailwind
colors: {
  custom: {
    50: '#6e5aa0',
    500: '#281c78',
    950: '#000000',
  },
}
SCSS
$custom: #281c78;
$custom-light: #6e5aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#281c78",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 120
  },
  "hsl": {
    "h": 247.826,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31266,
    "c": 0.14718,
    "h": 279.5
  },
  "luminance": 0.02638
}

Semantic roles & 50–950 ramp

primary
#281C78
secondary
#9EAC44
accent
#E543D0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #281C78

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

Preview Lab → · Contrast checker → · Palette generator →

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