#281A72#281A72

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

Color values

HEX#281A72
RGBrgb(40, 26, 114)
HSLhsl(250, 63%, 27%)
HSVhsv(250, 77%, 45%)
CMYKcmyk(64.9%, 77.2%, 0%, 55.3%)
CIE-LABlab(17.48, 33.58, -48.15)
CIE-LCHlch(17.48, 58.71, 304.89°)
OKLaboklab(30.33% 0.0272 -0.1389)
OKLCHoklch(30.33% 0.142 281.1)
XYZxyz(4.2808, 2.4045, 16.1549)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A72 #64721A
analogous
#1A3872 #281A72 #541A72
triadic
#281A72 #72281A #1A7228
tetradic
#281A72 #721A38 #64721A #1A7254
square
#281A72 #721A38 #64721A #1A7254
split-complementary
#281A72 #72541A #38721A
monochromatic
#090619 #170F40 #281A72 #3925A4 #4E35D1

Accessibility & contrast

On white

14.18
#281A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281A72
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A72#FFFFFF#000000##FFFFFF
##281A721.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #281a72;
/* rgb */ color: rgb(40, 26, 114);
/* oklch */ color: oklch(30.3% 0.142 281.1);
Tailwind
colors: {
  custom: {
    50: '#6d589b',
    500: '#281a72',
    950: '#000000',
  },
}
SCSS
$custom: #281a72;
$custom-light: #6d589b;
$custom-dark: #000000;
JSON
{
  "hex": "#281a72",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 249.545,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30334,
    "c": 0.14154,
    "h": 281.1
  },
  "luminance": 0.02405
}

Semantic roles & 50–950 ramp

primary
#281A72
secondary
#97A741
accent
#E642CC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #281A72

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

Preview Lab → · Contrast checker → · Palette generator →

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