#281F8F#281F8F

#281F8F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.173 H 275.6°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#281F8F
RGBrgb(40, 31, 143)
HSLhsl(245, 64%, 34%)
HSVhsv(245, 78%, 56%)
CMYKcmyk(72%, 78.3%, 0%, 43.9%)
CIE-LABlab(21.63, 40.38, -59.69)
CIE-LCHlch(21.63, 72.06, 304.08°)
OKLaboklab(34.2% 0.017 -0.1726)
OKLCHoklch(34.2% 0.173 275.6)
XYZxyz(6.3214, 3.4137, 26.3070)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F8F #868F1F
analogous
#1F4E8F #281F8F #601F8F
triadic
#281F8F #8F281F #1F8F28
tetradic
#281F8F #8F1F4E #868F1F #1F8F60
square
#281F8F #8F1F4E #868F1F #1F8F60
split-complementary
#281F8F #8F601F #4E8F1F
monochromatic
#0C092A #1A145D #281F8F #362AC1 #5B4FD9

Accessibility & contrast

On white

12.48
#281F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#281F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F8F
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F8F#FFFFFF#000000##FFFFFF
##281F8F1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #281f8f;
/* rgb */ color: rgb(40, 31, 143);
/* oklch */ color: oklch(34.2% 0.173 275.6);
Tailwind
colors: {
  custom: {
    50: '#735db1',
    500: '#281f8f',
    950: '#000000',
  },
}
SCSS
$custom: #281f8f;
$custom-light: #735db1;
$custom-dark: #000000;
JSON
{
  "hex": "#281f8f",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 244.821,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34199,
    "c": 0.17341,
    "h": 275.6
  },
  "luminance": 0.03414
}

Semantic roles & 50–950 ramp

primary
#281F8F
secondary
#B3BC4E
accent
#E740DA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #281F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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