#281D7B#281D7B

#281D7B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.150 H 278.8°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#281D7B
RGBrgb(40, 29, 123)
HSLhsl(247, 62%, 30%)
HSVhsv(247, 76%, 48%)
CMYKcmyk(67.5%, 76.4%, 0%, 51.8%)
CIE-LABlab(19.05, 34.85, -51.34)
CIE-LCHlch(19.05, 62.05, 304.17°)
OKLaboklab(31.73% 0.023 -0.1482)
OKLCHoklch(31.73% 0.15 278.8)
XYZxyz(4.8884, 2.7595, 19.0101)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D7B #707B1D
analogous
#1D417B #281D7B #571D7B
triadic
#281D7B #7B281D #1D7B28
tetradic
#281D7B #7B1D41 #707B1D #1D7B57
square
#281D7B #7B1D41 #707B1D #1D7B57
split-complementary
#281D7B #7B571D #417B1D
monochromatic
#080619 #181149 #281D7B #3829AD #5140D2

Accessibility & contrast

On white

13.53
#281D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#281D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D7B
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D7B#FFFFFF#000000##FFFFFF
##281D7B1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281d7b;
/* rgb */ color: rgb(40, 29, 123);
/* oklch */ color: oklch(31.7% 0.150 278.8);
Tailwind
colors: {
  custom: {
    50: '#6e5ba2',
    500: '#281d7b',
    950: '#000000',
  },
}
SCSS
$custom: #281d7b;
$custom-light: #6e5ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#281d7b",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 247.021,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31734,
    "c": 0.15001,
    "h": 278.8
  },
  "luminance": 0.0276
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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