#281D8F#281D8F

#281D8F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.175 H 275.9°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#281D8F
RGBrgb(40, 29, 143)
HSLhsl(246, 66%, 34%)
HSVhsv(246, 80%, 56%)
CMYKcmyk(72%, 79.7%, 0%, 43.9%)
CIE-LABlab(21.25, 41.46, -60.31)
CIE-LCHlch(21.25, 73.18, 304.51°)
OKLaboklab(33.94% 0.018 -0.1743)
OKLCHoklch(33.94% 0.175 275.9)
XYZxyz(6.2707, 3.3124, 26.2902)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D8F #848F1D
analogous
#1D4B8F #281D8F #611D8F
triadic
#281D8F #8F281D #1D8F28
tetradic
#281D8F #8F1D4B #848F1D #1D8F61
square
#281D8F #8F1D4B #848F1D #1D8F61
split-complementary
#281D8F #8F611D #4B8F1D
monochromatic
#0C0829 #1A135C #281D8F #3627C2 #5A4CDB

Accessibility & contrast

On white

12.63
#281D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281D8F
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D8F#FFFFFF#000000##FFFFFF
##281D8F1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #281d8f;
/* rgb */ color: rgb(40, 29, 143);
/* oklch */ color: oklch(33.9% 0.175 275.9);
Tailwind
colors: {
  custom: {
    50: '#735cb1',
    500: '#281d8f',
    950: '#000000',
  },
}
SCSS
$custom: #281d8f;
$custom-light: #735cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#281d8f",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 245.789,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33936,
    "c": 0.17528,
    "h": 275.9
  },
  "luminance": 0.03313
}

Semantic roles & 50–950 ramp

primary
#281D8F
secondary
#B2BD4B
accent
#E93FD9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #281D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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