#281D6D#281D6D

#281D6D is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.131 H 281.4°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#281D6D
RGBrgb(40, 29, 109)
HSLhsl(248, 58%, 27%)
HSVhsv(248, 73%, 43%)
CMYKcmyk(63.3%, 73.4%, 0%, 57.3%)
CIE-LABlab(17.62, 30.09, -44.69)
CIE-LCHlch(17.62, 53.87, 303.95°)
OKLaboklab(30.27% 0.0259 -0.1288)
OKLCHoklch(30.27% 0.131 281.4)
XYZxyz(4.0739, 2.4337, 14.7201)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D6D #626D1D
analogous
#1D3A6D #281D6D #501D6D
triadic
#281D6D #6D281D #1D6D28
tetradic
#281D6D #6D1D3A #626D1D #1D6D50
square
#281D6D #6D1D3A #626D1D #1D6D50
split-complementary
#281D6D #6D501D #3A6D1D
monochromatic
#090618 #16103D #281D6D #3A2A9D #4E3ACB

Accessibility & contrast

On white

14.12
#281D6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#281D6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D6D
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D6D#FFFFFF#000000##FFFFFF
##281D6D1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6F
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#003242
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #281d6d;
/* rgb */ color: rgb(40, 29, 109);
/* oklch */ color: oklch(30.3% 0.131 281.4);
Tailwind
colors: {
  custom: {
    50: '#6b5a98',
    500: '#281d6d',
    950: '#000000',
  },
}
SCSS
$custom: #281d6d;
$custom-light: #6b5a98;
$custom-dark: #000000;
JSON
{
  "hex": "#281d6d",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 109
  },
  "hsl": {
    "h": 248.25,
    "s": 57.971,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30274,
    "c": 0.13136,
    "h": 281.4
  },
  "luminance": 0.02434
}

Semantic roles & 50–950 ramp

primary
#281D6D
secondary
#95A244
accent
#E147CC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #281D6D

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

Preview Lab → · Contrast checker → · Palette generator →

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