#281D7F#281D7F

#281D7F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.155 H 278.2°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#281D7F
RGBrgb(40, 29, 127)
HSLhsl(247, 63%, 31%)
HSVhsv(247, 77%, 50%)
CMYKcmyk(68.5%, 77.2%, 0%, 50.2%)
CIE-LABlab(19.48, 36.19, -53.19)
CIE-LCHlch(19.48, 64.33, 304.24°)
OKLaboklab(32.16% 0.022 -0.1536)
OKLCHoklch(32.16% 0.155 278.2)
XYZxyz(5.1440, 2.8617, 20.3558)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D7F #747F1D
analogous
#1D437F #281D7F #591D7F
triadic
#281D7F #7F281D #1D7F28
tetradic
#281D7F #7F1D43 #747F1D #1D7F59
square
#281D7F #7F1D43 #747F1D #1D7F59
split-complementary
#281D7F #7F591D #437F1D
monochromatic
#09061B #18124D #281D7F #3828B1 #5342D4

Accessibility & contrast

On white

13.36
#281D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#281D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D7F
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D7F#FFFFFF#000000##FFFFFF
##281D7F1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #281d7f;
/* rgb */ color: rgb(40, 29, 127);
/* oklch */ color: oklch(32.2% 0.155 278.2);
Tailwind
colors: {
  custom: {
    50: '#6f5ba5',
    500: '#281d7f',
    950: '#000000',
  },
}
SCSS
$custom: #281d7f;
$custom-light: #6f5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#281d7f",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 246.735,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32164,
    "c": 0.15518,
    "h": 278.2
  },
  "luminance": 0.02862
}

Semantic roles & 50–950 ramp

primary
#281D7F
secondary
#A6B245
accent
#E642D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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