#281F71#281F71

#281F71 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.134 H 280.1°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#281F71
RGBrgb(40, 31, 113)
HSLhsl(247, 57%, 28%)
HSVhsv(247, 73%, 44%)
CMYKcmyk(64.6%, 72.6%, 0%, 55.7%)
CIE-LABlab(18.47, 30.22, -45.89)
CIE-LCHlch(18.47, 54.94, 303.36°)
OKLaboklab(31% 0.0235 -0.1323)
OKLCHoklch(31% 0.134 280.1)
XYZxyz(4.3447, 2.6230, 15.8969)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F71 #68711F
analogous
#1F3F71 #281F71 #511F71
triadic
#281F71 #71281F #1F7128
tetradic
#281F71 #711F3F #68711F #1F7151
square
#281F71 #711F3F #68711F #1F7151
split-complementary
#281F71 #71511F #3F711F
monochromatic
#080718 #171241 #281F71 #392CA1 #4F40CB

Accessibility & contrast

On white

13.77
#281F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#281F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F71
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F71#FFFFFF#000000##FFFFFF
##281F711.0013.771.5213.77
#FFFFFF13.771.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #281f71;
/* rgb */ color: rgb(40, 31, 113);
/* oklch */ color: oklch(31.0% 0.134 280.1);
Tailwind
colors: {
  custom: {
    50: '#6c5c9b',
    500: '#281f71',
    950: '#000000',
  },
}
SCSS
$custom: #281f71;
$custom-light: #6c5c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#281f71",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 246.585,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31004,
    "c": 0.13436,
    "h": 280.1
  },
  "luminance": 0.02623
}

Semantic roles & 50–950 ramp

primary
#281F71
secondary
#9BA547
accent
#E048CF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #281F71

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

Preview Lab → · Contrast checker → · Palette generator →

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