#281F88#281F88

#281F88 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.165 H 276.5°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#281F88
RGBrgb(40, 31, 136)
HSLhsl(245, 63%, 33%)
HSVhsv(245, 77%, 53%)
CMYKcmyk(70.6%, 77.2%, 0%, 46.7%)
CIE-LABlab(20.86, 38.06, -56.59)
CIE-LCHlch(20.86, 68.20, 303.92°)
OKLaboklab(33.43% 0.0187 -0.1635)
OKLCHoklch(33.43% 0.165 276.5)
XYZxyz(5.8075, 3.2081, 23.6010)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F88 #7F881F
analogous
#1F4A88 #281F88 #5C1F88
triadic
#281F88 #88281F #1F8828
tetradic
#281F88 #881F4A #7F881F #1F885C
square
#281F88 #881F4A #7F881F #1F885C
split-complementary
#281F88 #885C1F #4A881F
monochromatic
#0B0824 #191456 #281F88 #372ABA #574BD6

Accessibility & contrast

On white

12.79
#281F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#281F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F88
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F88#FFFFFF#000000##FFFFFF
##281F881.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #281f88;
/* rgb */ color: rgb(40, 31, 136);
/* oklch */ color: oklch(33.4% 0.165 276.5);
Tailwind
colors: {
  custom: {
    50: '#715dac',
    500: '#281f88',
    950: '#000000',
  },
}
SCSS
$custom: #281f88;
$custom-light: #715dac;
$custom-dark: #000000;
JSON
{
  "hex": "#281f88",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 245.143,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33428,
    "c": 0.16461,
    "h": 276.5
  },
  "luminance": 0.03209
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281F88

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

Preview Lab → · Contrast checker → · Palette generator →

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