#281F95#281F95

#281F95 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.181 H 274.9°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#281F95
RGBrgb(40, 31, 149)
HSLhsl(245, 66%, 35%)
HSVhsv(245, 79%, 58%)
CMYKcmyk(73.2%, 79.2%, 0%, 41.6%)
CIE-LABlab(22.30, 42.34, -62.29)
CIE-LCHlch(22.30, 75.32, 304.21°)
OKLaboklab(34.87% 0.0156 -0.1801)
OKLCHoklch(34.87% 0.181 274.9)
XYZxyz(6.7881, 3.6004, 28.7651)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F95 #8C951F
analogous
#1F5195 #281F95 #631F95
triadic
#281F95 #95281F #1F9528
tetradic
#281F95 #951F51 #8C951F #1F9563
square
#281F95 #951F51 #8C951F #1F9563
split-complementary
#281F95 #95631F #51951F
monochromatic
#0D0A30 #1A1462 #281F95 #362AC8 #5E53DB

Accessibility & contrast

On white

12.21
#281F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#281F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F95
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F95#FFFFFF#000000##FFFFFF
##281F951.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003093
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #281f95;
/* rgb */ color: rgb(40, 31, 149);
/* oklch */ color: oklch(34.9% 0.181 274.9);
Tailwind
colors: {
  custom: {
    50: '#745db5',
    500: '#281f95',
    950: '#000000',
  },
}
SCSS
$custom: #281f95;
$custom-light: #745db5;
$custom-dark: #000000;
JSON
{
  "hex": "#281f95",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 244.576,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34871,
    "c": 0.18081,
    "h": 274.9
  },
  "luminance": 0.03601
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281F95

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

Preview Lab → · Contrast checker → · Palette generator →

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