#281E78#281E78

#281E78 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.145 H 279.1°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#281E78
RGBrgb(40, 30, 120)
HSLhsl(247, 60%, 29%)
HSVhsv(247, 75%, 47%)
CMYKcmyk(66.7%, 75%, 0%, 52.9%)
CIE-LABlab(18.95, 33.24, -49.60)
CIE-LCHlch(18.95, 59.70, 303.83°)
OKLaboklab(31.57% 0.0229 -0.1431)
OKLCHoklch(31.57% 0.145 279.1)
XYZxyz(4.7284, 2.7354, 18.0445)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E78 #6E781E
analogous
#1E4178 #281E78 #551E78
triadic
#281E78 #78281E #1E7828
tetradic
#281E78 #781E41 #6E781E #1E7855
square
#281E78 #781E41 #6E781E #1E7855
split-complementary
#281E78 #78551E #41781E
monochromatic
#080618 #181247 #281E78 #382AA9 #5141CF

Accessibility & contrast

On white

13.57
#281E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#281E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E78
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E78#FFFFFF#000000##FFFFFF
##281E781.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002A76
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281e78;
/* rgb */ color: rgb(40, 30, 120);
/* oklch */ color: oklch(31.6% 0.145 279.1);
Tailwind
colors: {
  custom: {
    50: '#6e5ba0',
    500: '#281e78',
    950: '#000000',
  },
}
SCSS
$custom: #281e78;
$custom-light: #6e5ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#281e78",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 120
  },
  "hsl": {
    "h": 246.667,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31566,
    "c": 0.14496,
    "h": 279.1
  },
  "luminance": 0.02736
}

Semantic roles & 50–950 ramp

primary
#281E78
secondary
#A0AC46
accent
#E345D2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #281E78

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

Preview Lab → · Contrast checker → · Palette generator →

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