#281B78#281B78

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

Color values

HEX#281B78
RGBrgb(40, 27, 120)
HSLhsl(248, 63%, 29%)
HSVhsv(248, 78%, 47%)
CMYKcmyk(66.7%, 77.5%, 0%, 52.9%)
CIE-LABlab(18.32, 35.00, -50.63)
CIE-LCHlch(18.32, 61.55, 304.66°)
OKLaboklab(31.12% 0.025 -0.1461)
OKLCHoklch(31.12% 0.148 279.7)
XYZxyz(4.6561, 2.5907, 18.0203)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B78 #6B781B
analogous
#1B3D78 #281B78 #571B78
triadic
#281B78 #78281B #1B7828
tetradic
#281B78 #781B3D #6B781B #1B7857
square
#281B78 #781B3D #6B781B #1B7857
split-complementary
#281B78 #78571B #3D781B
monochromatic
#080619 #171046 #281B78 #3926AA #503BD3

Accessibility & contrast

On white

13.83
#281B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#281B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B78
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B78#FFFFFF#000000##FFFFFF
##281B781.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281b78;
/* rgb */ color: rgb(40, 27, 120);
/* oklch */ color: oklch(31.1% 0.148 279.7);
Tailwind
colors: {
  custom: {
    50: '#6e59a0',
    500: '#281b78',
    950: '#000000',
  },
}
SCSS
$custom: #281b78;
$custom-light: #6e59a0;
$custom-dark: #000000;
JSON
{
  "hex": "#281b78",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 248.387,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31121,
    "c": 0.14826,
    "h": 279.7
  },
  "luminance": 0.02591
}

Semantic roles & 50–950 ramp

primary
#281B78
secondary
#9DAC43
accent
#E641CF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281B78

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

Preview Lab → · Contrast checker → · Palette generator →

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