#281D9A#281D9A

#281D9A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.189 H 274.6°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#281D9A
RGBrgb(40, 29, 154)
HSLhsl(245, 68%, 36%)
HSVhsv(245, 81%, 60%)
CMYKcmyk(74%, 81.2%, 0%, 39.6%)
CIE-LABlab(22.52, 44.98, -65.01)
CIE-LCHlch(22.52, 79.05, 304.68°)
OKLaboklab(35.19% 0.0152 -0.188)
OKLCHoklch(35.19% 0.189 274.6)
XYZxyz(7.1452, 3.6622, 30.8959)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D9A #8F9A1D
analogous
#1D509A #281D9A #661D9A
triadic
#281D9A #9A281D #1D9A28
tetradic
#281D9A #9A1D50 #8F9A1D #1D9A66
square
#281D9A #9A1D50 #8F9A1D #1D9A66
split-complementary
#281D9A #9A661D #509A1D
monochromatic
#0D0A33 #1B1366 #281D9A #3527CE #5F53DF

Accessibility & contrast

On white

12.12
#281D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#281D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D9A
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D9A#FFFFFF#000000##FFFFFF
##281D9A1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9D
Deuteranopia (green-blind)
#003098
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #281d9a;
/* rgb */ color: rgb(40, 29, 154);
/* oklch */ color: oklch(35.2% 0.189 274.6);
Tailwind
colors: {
  custom: {
    50: '#765db9',
    500: '#281d9a',
    950: '#000000',
  },
}
SCSS
$custom: #281d9a;
$custom-light: #765db9;
$custom-dark: #000000;
JSON
{
  "hex": "#281d9a",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 245.28,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35192,
    "c": 0.18861,
    "h": 274.6
  },
  "luminance": 0.03663
}

Semantic roles & 50–950 ramp

primary
#281D9A
secondary
#B8C251
accent
#EB3DDC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #281D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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