#281D7E#281D7E

#281D7E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.154 H 278.3°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#281D7E
RGBrgb(40, 29, 126)
HSLhsl(247, 63%, 30%)
HSVhsv(247, 77%, 49%)
CMYKcmyk(68.3%, 77%, 0%, 50.6%)
CIE-LABlab(19.37, 35.86, -52.73)
CIE-LCHlch(19.37, 63.76, 304.22°)
OKLaboklab(32.06% 0.0222 -0.1523)
OKLCHoklch(32.06% 0.154 278.3)
XYZxyz(5.0791, 2.8358, 20.0143)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D7E #737E1D
analogous
#1D427E #281D7E #581D7E
triadic
#281D7E #7E281D #1D7E28
tetradic
#281D7E #7E1D42 #737E1D #1D7E58
square
#281D7E #7E1D42 #737E1D #1D7E58
split-complementary
#281D7E #7E581D #427E1D
monochromatic
#08061B #18124C #281D7E #3828B0 #5242D3

Accessibility & contrast

On white

13.40
#281D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281D7E
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D7E#FFFFFF#000000##FFFFFF
##281D7E1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281d7e;
/* rgb */ color: rgb(40, 29, 126);
/* oklch */ color: oklch(32.1% 0.154 278.3);
Tailwind
colors: {
  custom: {
    50: '#6f5ba4',
    500: '#281d7e',
    950: '#000000',
  },
}
SCSS
$custom: #281d7e;
$custom-light: #6f5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#281d7e",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 246.804,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32056,
    "c": 0.15389,
    "h": 278.3
  },
  "luminance": 0.02836
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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