#281F84#281F84

#281F84 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.160 H 277.1°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#281F84
RGBrgb(40, 31, 132)
HSLhsl(245, 62%, 32%)
HSVhsv(245, 77%, 52%)
CMYKcmyk(69.7%, 76.5%, 0%, 48.2%)
CIE-LABlab(20.43, 36.72, -54.79)
CIE-LCHlch(20.43, 65.96, 303.83°)
OKLaboklab(32.99% 0.0196 -0.1583)
OKLCHoklch(32.99% 0.16 277.1)
XYZxyz(5.5286, 3.0965, 22.1317)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F84 #7B841F
analogous
#1F4884 #281F84 #5B1F84
triadic
#281F84 #84281F #1F8428
tetradic
#281F84 #841F48 #7B841F #1F845B
square
#281F84 #841F48 #7B841F #1F845B
split-complementary
#281F84 #845B1F #48841F
monochromatic
#0A0821 #191352 #281F84 #372BB6 #5649D4

Accessibility & contrast

On white

12.97
#281F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#281F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F84
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F84#FFFFFF#000000##FFFFFF
##281F841.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #281f84;
/* rgb */ color: rgb(40, 31, 132);
/* oklch */ color: oklch(33.0% 0.160 277.1);
Tailwind
colors: {
  custom: {
    50: '#705ca9',
    500: '#281f84',
    950: '#000000',
  },
}
SCSS
$custom: #281f84;
$custom-light: #705ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#281f84",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 245.347,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32993,
    "c": 0.15951,
    "h": 277.1
  },
  "luminance": 0.03097
}

Semantic roles & 50–950 ramp

primary
#281F84
secondary
#ADB748
accent
#E543D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281F84

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

Preview Lab → · Contrast checker → · Palette generator →

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