#281F89#281F89

#281F89 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.166 H 276.4°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#281F89
RGBrgb(40, 31, 137)
HSLhsl(245, 63%, 33%)
HSVhsv(245, 77%, 54%)
CMYKcmyk(70.8%, 77.4%, 0%, 46.3%)
CIE-LABlab(20.97, 38.39, -57.04)
CIE-LCHlch(20.97, 68.75, 303.95°)
OKLaboklab(33.54% 0.0185 -0.1648)
OKLCHoklch(33.54% 0.166 276.4)
XYZxyz(5.8789, 3.2367, 23.9770)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F89 #80891F
analogous
#1F4B89 #281F89 #5D1F89
triadic
#281F89 #89281F #1F8928
tetradic
#281F89 #891F4B #80891F #1F895D
square
#281F89 #891F4B #80891F #1F895D
split-complementary
#281F89 #895D1F #4B891F
monochromatic
#0B0825 #191457 #281F89 #372ABB #584CD6

Accessibility & contrast

On white

12.75
#281F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#281F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F89
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F89#FFFFFF#000000##FFFFFF
##281F891.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#002E87
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #281f89;
/* rgb */ color: rgb(40, 31, 137);
/* oklch */ color: oklch(33.5% 0.166 276.4);
Tailwind
colors: {
  custom: {
    50: '#715dad',
    500: '#281f89',
    950: '#000000',
  },
}
SCSS
$custom: #281f89;
$custom-light: #715dad;
$custom-dark: #000000;
JSON
{
  "hex": "#281f89",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 245.094,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33537,
    "c": 0.16588,
    "h": 276.4
  },
  "luminance": 0.03237
}

Semantic roles & 50–950 ramp

primary
#281F89
secondary
#B0B94B
accent
#E642D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281F89

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

Preview Lab → · Contrast checker → · Palette generator →

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