#281B71#281B71

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

Color values

HEX#281B71
RGBrgb(40, 27, 113)
HSLhsl(249, 61%, 27%)
HSVhsv(249, 76%, 44%)
CMYKcmyk(64.6%, 76.1%, 0%, 55.7%)
CIE-LABlab(17.58, 32.66, -47.34)
CIE-LCHlch(17.58, 57.51, 304.60°)
OKLaboklab(30.38% 0.0267 -0.1365)
OKLCHoklch(30.38% 0.139 281.1)
XYZxyz(4.2467, 2.4269, 15.8642)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B71 #64711B
analogous
#1B3971 #281B71 #531B71
triadic
#281B71 #71281B #1B7128
tetradic
#281B71 #711B39 #64711B #1B7153
square
#281B71 #711B39 #64711B #1B7153
split-complementary
#281B71 #71531B #39711B
monochromatic
#090619 #170F40 #281B71 #3927A2 #4E37CF

Accessibility & contrast

On white

14.14
#281B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281B71
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B71#FFFFFF#000000##FFFFFF
##281B711.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281b71;
/* rgb */ color: rgb(40, 27, 113);
/* oklch */ color: oklch(30.4% 0.139 281.1);
Tailwind
colors: {
  custom: {
    50: '#6c599b',
    500: '#281b71',
    950: '#000000',
  },
}
SCSS
$custom: #281b71;
$custom-light: #6c599b;
$custom-dark: #000000;
JSON
{
  "hex": "#281b71",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 249.07,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30376,
    "c": 0.1391,
    "h": 281.1
  },
  "luminance": 0.02427
}

Semantic roles & 50–950 ramp

primary
#281B71
secondary
#97A642
accent
#E543CC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #281B71

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

Preview Lab → · Contrast checker → · Palette generator →

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