#281F96#281F96

#281F96 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.182 H 274.8°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#281F96
RGBrgb(40, 31, 150)
HSLhsl(245, 66%, 35%)
HSVhsv(245, 79%, 59%)
CMYKcmyk(73.3%, 79.3%, 0%, 41.2%)
CIE-LABlab(22.42, 42.67, -62.72)
CIE-LCHlch(22.42, 75.86, 304.23°)
OKLaboklab(34.98% 0.0153 -0.1814)
OKLCHoklch(34.98% 0.182 274.8)
XYZxyz(6.8683, 3.6324, 29.1874)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F96 #8D961F
analogous
#1F5196 #281F96 #631F96
triadic
#281F96 #96281F #1F9628
tetradic
#281F96 #961F51 #8D961F #1F9663
square
#281F96 #961F51 #8D961F #1F9663
split-complementary
#281F96 #96631F #51961F
monochromatic
#0D0A31 #1A1563 #281F96 #3629C9 #5E54DC

Accessibility & contrast

On white

12.16
#281F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281F96
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F96#FFFFFF#000000##FFFFFF
##281F961.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003094
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #281f96;
/* rgb */ color: rgb(40, 31, 150);
/* oklch */ color: oklch(35.0% 0.182 274.8);
Tailwind
colors: {
  custom: {
    50: '#745db6',
    500: '#281f96',
    950: '#000000',
  },
}
SCSS
$custom: #281f96;
$custom-light: #745db6;
$custom-dark: #000000;
JSON
{
  "hex": "#281f96",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 244.538,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34984,
    "c": 0.18203,
    "h": 274.8
  },
  "luminance": 0.03633
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281F96

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

Preview Lab → · Contrast checker → · Palette generator →

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