#281F78#281F78

#281F78 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.144 H 278.9°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#281F78
RGBrgb(40, 31, 120)
HSLhsl(246, 59%, 30%)
HSVhsv(246, 74%, 47%)
CMYKcmyk(66.7%, 74.2%, 0%, 52.9%)
CIE-LABlab(19.17, 32.63, -49.24)
CIE-LCHlch(19.17, 59.07, 303.54°)
OKLaboklab(31.72% 0.0222 -0.1421)
OKLCHoklch(31.72% 0.144 278.9)
XYZxyz(4.7541, 2.7868, 18.0530)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F78 #6F781F
analogous
#1F4378 #281F78 #541F78
triadic
#281F78 #78281F #1F7828
tetradic
#281F78 #781F43 #6F781F #1F7854
square
#281F78 #781F43 #6F781F #1F7854
split-complementary
#281F78 #78541F #43781F
monochromatic
#080618 #181247 #281F78 #382CA9 #5143CE

Accessibility & contrast

On white

13.48
#281F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#281F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F78
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F78#FFFFFF#000000##FFFFFF
##281F781.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #281f78;
/* rgb */ color: rgb(40, 31, 120);
/* oklch */ color: oklch(31.7% 0.144 278.9);
Tailwind
colors: {
  custom: {
    50: '#6d5ca0',
    500: '#281f78',
    950: '#000000',
  },
}
SCSS
$custom: #281f78;
$custom-light: #6d5ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#281f78",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 246.067,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31721,
    "c": 0.14381,
    "h": 278.9
  },
  "luminance": 0.02787
}

Semantic roles & 50–950 ramp

primary
#281F78
secondary
#A1AB47
accent
#E246D2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #281F78

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

Preview Lab → · Contrast checker → · Palette generator →

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