#281D7C#281D7C

#281D7C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.151 H 278.6°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#281D7C
RGBrgb(40, 29, 124)
HSLhsl(247, 62%, 30%)
HSVhsv(247, 77%, 49%)
CMYKcmyk(67.7%, 76.6%, 0%, 51.4%)
CIE-LABlab(19.16, 35.19, -51.81)
CIE-LCHlch(19.16, 62.63, 304.18°)
OKLaboklab(31.84% 0.0227 -0.1496)
OKLCHoklch(31.84% 0.151 278.6)
XYZxyz(4.9514, 2.7847, 19.3414)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D7C #717C1D
analogous
#1D427C #281D7C #571D7C
triadic
#281D7C #7C281D #1D7C28
tetradic
#281D7C #7C1D42 #717C1D #1D7C57
square
#281D7C #7C1D42 #717C1D #1D7C57
split-complementary
#281D7C #7C571D #427C1D
monochromatic
#080619 #18114A #281D7C #3829AE #5241D3

Accessibility & contrast

On white

13.49
#281D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#281D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D7C
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D7C#FFFFFF#000000##FFFFFF
##281D7C1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281d7c;
/* rgb */ color: rgb(40, 29, 124);
/* oklch */ color: oklch(31.8% 0.151 278.6);
Tailwind
colors: {
  custom: {
    50: '#6f5ba3',
    500: '#281d7c',
    950: '#000000',
  },
}
SCSS
$custom: #281d7c;
$custom-light: #6f5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#281d7c",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 246.947,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.31841,
    "c": 0.1513,
    "h": 278.6
  },
  "luminance": 0.02785
}

Semantic roles & 50–950 ramp

primary
#281D7C
secondary
#A3B045
accent
#E543D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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