#281F97#281F97

#281F97 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.183 H 274.7°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#281F97
RGBrgb(40, 31, 151)
HSLhsl(245, 66%, 36%)
HSVhsv(245, 79%, 59%)
CMYKcmyk(73.5%, 79.5%, 0%, 40.8%)
CIE-LABlab(22.53, 42.99, -63.15)
CIE-LCHlch(22.53, 76.39, 304.25°)
OKLaboklab(35.1% 0.0151 -0.1826)
OKLCHoklch(35.1% 0.183 274.7)
XYZxyz(6.9491, 3.6648, 29.6133)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F97 #8E971F
analogous
#1F5297 #281F97 #641F97
triadic
#281F97 #97281F #1F9728
tetradic
#281F97 #971F52 #8E971F #1F9764
square
#281F97 #971F52 #8E971F #1F9764
split-complementary
#281F97 #97641F #52971F
monochromatic
#0D0A31 #1B1564 #281F97 #3529CA #5F54DC

Accessibility & contrast

On white

12.12
#281F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#281F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F97
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F97#FFFFFF#000000##FFFFFF
##281F971.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003095
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #281f97;
/* rgb */ color: rgb(40, 31, 151);
/* oklch */ color: oklch(35.1% 0.183 274.7);
Tailwind
colors: {
  custom: {
    50: '#755eb7',
    500: '#281f97',
    950: '#000000',
  },
}
SCSS
$custom: #281f97;
$custom-light: #755eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#281f97",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 244.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35097,
    "c": 0.18325,
    "h": 274.7
  },
  "luminance": 0.03665
}

Semantic roles & 50–950 ramp

primary
#281F97
secondary
#B7BF52
accent
#E93FDC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281F97

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

Preview Lab → · Contrast checker → · Palette generator →

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