#281C7E#281C7E

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

Color values

HEX#281C7E
RGBrgb(40, 28, 126)
HSLhsl(247, 64%, 30%)
HSVhsv(247, 78%, 49%)
CMYKcmyk(68.3%, 77.8%, 0%, 50.6%)
CIE-LABlab(19.17, 36.43, -53.06)
CIE-LCHlch(19.17, 64.36, 304.47°)
OKLaboklab(31.91% 0.0229 -0.1532)
OKLCHoklch(31.91% 0.155 278.5)
XYZxyz(5.0550, 2.7876, 20.0063)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C7E #727E1C
analogous
#1C417E #281C7E #591C7E
triadic
#281C7E #7E281C #1C7E28
tetradic
#281C7E #7E1C41 #727E1C #1C7E59
square
#281C7E #7E1C41 #727E1C #1C7E59
split-complementary
#281C7E #7E591C #417E1C
monochromatic
#08061A #18114C #281C7E #3827B0 #5240D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##281C7E#FFFFFF#000000##FFFFFF
##281C7E1.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)
#003281
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #281c7e;
/* rgb */ color: rgb(40, 28, 126);
/* oklch */ color: oklch(31.9% 0.155 278.5);
Tailwind
colors: {
  custom: {
    50: '#6f5aa4',
    500: '#281c7e',
    950: '#000000',
  },
}
SCSS
$custom: #281c7e;
$custom-light: #6f5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#281c7e",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 247.347,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31914,
    "c": 0.15493,
    "h": 278.5
  },
  "luminance": 0.02788
}

Semantic roles & 50–950 ramp

primary
#281C7E
secondary
#A4B244
accent
#E741D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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