#281D6B#281D6B

#281D6B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.1% C 0.129 H 281.8°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#281D6B
RGBrgb(40, 29, 107)
HSLhsl(248, 57%, 27%)
HSVhsv(248, 73%, 42%)
CMYKcmyk(62.6%, 72.9%, 0%, 58%)
CIE-LABlab(17.42, 29.40, -43.71)
CIE-LCHlch(17.42, 52.68, 303.93°)
OKLaboklab(30.07% 0.0263 -0.1259)
OKLCHoklch(30.07% 0.129 281.8)
XYZxyz(3.9675, 2.3911, 14.1595)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D6B #606B1D
analogous
#1D396B #281D6B #4F1D6B
triadic
#281D6B #6B281D #1D6B28
tetradic
#281D6B #6B1D39 #606B1D #1D6B4F
square
#281D6B #6B1D39 #606B1D #1D6B4F
split-complementary
#281D6B #6B4F1D #396B1D
monochromatic
#090718 #16103B #281D6B #3A2A9B #4D39C9

Accessibility & contrast

On white

14.21
#281D6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#281D6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D6B
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D6B#FFFFFF#000000##FFFFFF
##281D6B1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#00286A
Tritanopia (blue-blind)
#003241
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #281d6b;
/* rgb */ color: rgb(40, 29, 107);
/* oklch */ color: oklch(30.1% 0.129 281.8);
Tailwind
colors: {
  custom: {
    50: '#6b5a96',
    500: '#281d6b',
    950: '#000000',
  },
}
SCSS
$custom: #281d6b;
$custom-light: #6b5a96;
$custom-dark: #000000;
JSON
{
  "hex": "#281d6b",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 107
  },
  "hsl": {
    "h": 248.462,
    "s": 57.353,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30073,
    "c": 0.12863,
    "h": 281.8
  },
  "luminance": 0.02391
}

Semantic roles & 50–950 ramp

primary
#281D6B
secondary
#93A044
accent
#E147CB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #281D6B

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

Preview Lab → · Contrast checker → · Palette generator →

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