#281D8E#281D8E

#281D8E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.174 H 276.0°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#281D8E
RGBrgb(40, 29, 142)
HSLhsl(246, 66%, 34%)
HSVhsv(246, 80%, 56%)
CMYKcmyk(71.8%, 79.6%, 0%, 44.3%)
CIE-LABlab(21.14, 41.13, -59.87)
CIE-LCHlch(21.14, 72.64, 304.49°)
OKLaboklab(33.82% 0.0183 -0.1731)
OKLCHoklch(33.82% 0.174 276)
XYZxyz(6.1953, 3.2823, 25.8930)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D8E #838E1D
analogous
#1D4A8E #281D8E #601D8E
triadic
#281D8E #8E281D #1D8E28
tetradic
#281D8E #8E1D4A #838E1D #1D8E60
square
#281D8E #8E1D4A #838E1D #1D8E60
split-complementary
#281D8E #8E601D #4A8E1D
monochromatic
#0B0828 #1A135B #281D8E #3627C1 #594BDA

Accessibility & contrast

On white

12.68
#281D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#281D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D8E
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D8E#FFFFFF#000000##FFFFFF
##281D8E1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #281d8e;
/* rgb */ color: rgb(40, 29, 142);
/* oklch */ color: oklch(33.8% 0.174 276.0);
Tailwind
colors: {
  custom: {
    50: '#735cb0',
    500: '#281d8e',
    950: '#000000',
  },
}
SCSS
$custom: #281d8e;
$custom-light: #735cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#281d8e",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 245.841,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33823,
    "c": 0.17405,
    "h": 276
  },
  "luminance": 0.03283
}

Semantic roles & 50–950 ramp

primary
#281D8E
secondary
#B1BD4A
accent
#E93FD8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #281D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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