#281D79#281D79

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

Color values

HEX#281D79
RGBrgb(40, 29, 121)
HSLhsl(247, 61%, 29%)
HSVhsv(247, 76%, 47%)
CMYKcmyk(66.9%, 76%, 0%, 52.5%)
CIE-LABlab(18.84, 34.18, -50.41)
CIE-LCHlch(18.84, 60.91, 304.13°)
OKLaboklab(31.52% 0.0234 -0.1455)
OKLCHoklch(31.52% 0.147 279.1)
XYZxyz(4.7645, 2.7099, 18.3574)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D79 #6E791D
analogous
#1D4079 #281D79 #561D79
triadic
#281D79 #79281D #1D7928
tetradic
#281D79 #791D40 #6E791D #1D7956
square
#281D79 #791D40 #6E791D #1D7956
split-complementary
#281D79 #79561D #40791D
monochromatic
#080619 #181148 #281D79 #3829AA #513FD1

Accessibility & contrast

On white

13.62
#281D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#281D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D79
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D79#FFFFFF#000000##FFFFFF
##281D791.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281d79;
/* rgb */ color: rgb(40, 29, 121);
/* oklch */ color: oklch(31.5% 0.147 279.1);
Tailwind
colors: {
  custom: {
    50: '#6e5ba1',
    500: '#281d79',
    950: '#000000',
  },
}
SCSS
$custom: #281d79;
$custom-light: #6e5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#281d79",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 247.174,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3152,
    "c": 0.14739,
    "h": 279.1
  },
  "luminance": 0.0271
}

Semantic roles & 50–950 ramp

primary
#281D79
secondary
#A0AD45
accent
#E443D1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281D79

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

Preview Lab → · Contrast checker → · Palette generator →

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