#281F8A#281F8A

#281F8A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.167 H 276.3°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#281F8A
RGBrgb(40, 31, 138)
HSLhsl(245, 63%, 33%)
HSVhsv(245, 78%, 54%)
CMYKcmyk(71%, 77.5%, 0%, 45.9%)
CIE-LABlab(21.08, 38.73, -57.48)
CIE-LCHlch(21.08, 69.31, 303.97°)
OKLaboklab(33.65% 0.0182 -0.1661)
OKLCHoklch(33.65% 0.167 276.3)
XYZxyz(5.9510, 3.2655, 24.3565)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F8A #818A1F
analogous
#1F4B8A #281F8A #5D1F8A
triadic
#281F8A #8A281F #1F8A28
tetradic
#281F8A #8A1F4B #818A1F #1F8A5D
square
#281F8A #8A1F4B #818A1F #1F8A5D
split-complementary
#281F8A #8A5D1F #4B8A1F
monochromatic
#0B0926 #1A1458 #281F8A #362ABC #584CD7

Accessibility & contrast

On white

12.70
#281F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281F8A
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F8A#FFFFFF#000000##FFFFFF
##281F8A1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #281f8a;
/* rgb */ color: rgb(40, 31, 138);
/* oklch */ color: oklch(33.6% 0.167 276.3);
Tailwind
colors: {
  custom: {
    50: '#725dad',
    500: '#281f8a',
    950: '#000000',
  },
}
SCSS
$custom: #281f8a;
$custom-light: #725dad;
$custom-dark: #000000;
JSON
{
  "hex": "#281f8a",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 245.047,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33647,
    "c": 0.16715,
    "h": 276.3
  },
  "luminance": 0.03266
}

Semantic roles & 50–950 ramp

primary
#281F8A
secondary
#B0BA4B
accent
#E641D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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