#281D99#281D99

#281D99 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.1% C 0.187 H 274.7°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#281D99
RGBrgb(40, 29, 153)
HSLhsl(245, 68%, 36%)
HSVhsv(245, 81%, 60%)
CMYKcmyk(73.9%, 81%, 0%, 40%)
CIE-LABlab(22.41, 44.66, -64.59)
CIE-LCHlch(22.41, 78.53, 304.66°)
OKLaboklab(35.08% 0.0154 -0.1868)
OKLCHoklch(35.08% 0.187 274.7)
XYZxyz(7.0623, 3.6291, 30.4591)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D99 #8E991D
analogous
#1D5099 #281D99 #661D99
triadic
#281D99 #99281D #1D9928
tetradic
#281D99 #991D50 #8E991D #1D9966
square
#281D99 #991D50 #8E991D #1D9966
split-complementary
#281D99 #99661D #50991D
monochromatic
#0D0932 #1B1366 #281D99 #3527CC #5F52DE

Accessibility & contrast

On white

12.17
#281D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281D99
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D99#FFFFFF#000000##FFFFFF
##281D991.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#003097
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #281d99;
/* rgb */ color: rgb(40, 29, 153);
/* oklch */ color: oklch(35.1% 0.187 274.7);
Tailwind
colors: {
  custom: {
    50: '#755db8',
    500: '#281d99',
    950: '#000000',
  },
}
SCSS
$custom: #281d99;
$custom-light: #755db8;
$custom-dark: #000000;
JSON
{
  "hex": "#281d99",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 153
  },
  "hsl": {
    "h": 245.323,
    "s": 68.132,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35076,
    "c": 0.18742,
    "h": 274.7
  },
  "luminance": 0.0363
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281D99

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

Preview Lab → · Contrast checker → · Palette generator →

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