#281D84#281D84

#281D84 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.162 H 277.4°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#281D84
RGBrgb(40, 29, 132)
HSLhsl(246, 64%, 32%)
HSVhsv(246, 78%, 52%)
CMYKcmyk(69.7%, 78%, 0%, 48.2%)
CIE-LABlab(20.03, 37.85, -55.45)
CIE-LCHlch(20.03, 67.14, 304.32°)
OKLaboklab(32.71% 0.0208 -0.1602)
OKLCHoklch(32.71% 0.162 277.4)
XYZxyz(5.4779, 2.9953, 22.1148)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D84 #79841D
analogous
#1D4684 #281D84 #5C1D84
triadic
#281D84 #84281D #1D8428
tetradic
#281D84 #841D46 #79841D #1D845C
square
#281D84 #841D46 #79841D #1D845C
split-complementary
#281D84 #845C1D #46841D
monochromatic
#0A0720 #191252 #281D84 #3728B6 #5545D6

Accessibility & contrast

On white

13.13
#281D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#281D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D84
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D84#FFFFFF#000000##FFFFFF
##281D841.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #281d84;
/* rgb */ color: rgb(40, 29, 132);
/* oklch */ color: oklch(32.7% 0.162 277.4);
Tailwind
colors: {
  custom: {
    50: '#705ba9',
    500: '#281d84',
    950: '#000000',
  },
}
SCSS
$custom: #281d84;
$custom-light: #705ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#281d84",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 132
  },
  "hsl": {
    "h": 246.408,
    "s": 63.975,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3271,
    "c": 0.16155,
    "h": 277.4
  },
  "luminance": 0.02996
}

Semantic roles & 50–950 ramp

primary
#281D84
secondary
#ABB746
accent
#E741D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281D84

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

Preview Lab → · Contrast checker → · Palette generator →

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