#281A71#281A71

#281A71 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.2% C 0.140 H 281.3°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#281A71
RGBrgb(40, 26, 113)
HSLhsl(250, 63%, 27%)
HSVhsv(250, 77%, 44%)
CMYKcmyk(64.6%, 77%, 0%, 55.7%)
CIE-LABlab(17.38, 33.25, -47.68)
CIE-LCHlch(17.38, 58.13, 304.89°)
OKLaboklab(30.23% 0.0275 -0.1375)
OKLCHoklch(30.23% 0.14 281.3)
XYZxyz(4.2242, 2.3819, 15.8567)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A71 #63711A
analogous
#1A3871 #281A71 #541A71
triadic
#281A71 #71281A #1A7128
tetradic
#281A71 #711A38 #63711A #1A7154
square
#281A71 #711A38 #63711A #1A7154
split-complementary
#281A71 #71541A #38711A
monochromatic
#090619 #160F3F #281A71 #3A25A3 #4E35D0

Accessibility & contrast

On white

14.22
#281A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281A71
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A71#FFFFFF#000000##FFFFFF
##281A711.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #281a71;
/* rgb */ color: rgb(40, 26, 113);
/* oklch */ color: oklch(30.2% 0.140 281.3);
Tailwind
colors: {
  custom: {
    50: '#6c589b',
    500: '#281a71',
    950: '#000000',
  },
}
SCSS
$custom: #281a71;
$custom-light: #6c589b;
$custom-dark: #000000;
JSON
{
  "hex": "#281a71",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 249.655,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30228,
    "c": 0.14023,
    "h": 281.3
  },
  "luminance": 0.02382
}

Semantic roles & 50–950 ramp

primary
#281A71
secondary
#96A641
accent
#E642CB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #281A71

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

Preview Lab → · Contrast checker → · Palette generator →

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