#291D72#291D72

#291D72 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.138 H 281.0°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#291D72
RGBrgb(41, 29, 114)
HSLhsl(248, 59%, 28%)
HSVhsv(248, 75%, 45%)
CMYKcmyk(64%, 74.6%, 0%, 55.3%)
CIE-LABlab(18.21, 31.95, -46.95)
CIE-LCHlch(18.21, 56.79, 304.23°)
OKLaboklab(30.87% 0.0264 -0.1354)
OKLCHoklch(30.87% 0.138 281)
XYZxyz(4.3901, 2.5647, 16.1800)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291D72 #66721D
analogous
#1D3B72 #291D72 #541D72
triadic
#291D72 #72291D #1D7229
tetradic
#291D72 #721D3B #66721D #1D7254
square
#291D72 #721D3B #66721D #1D7254
split-complementary
#291D72 #72541D #3B721D
monochromatic
#090618 #171141 #291D72 #3B29A3 #513CCD

Accessibility & contrast

On white

13.88
#291D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#291D72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291D72
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291D72#FFFFFF#000000##FFFFFF
##291D721.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#003445
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #291d72;
/* rgb */ color: rgb(41, 29, 114);
/* oklch */ color: oklch(30.9% 0.138 281.0);
Tailwind
colors: {
  custom: {
    50: '#6d5a9b',
    500: '#291d72',
    950: '#000000',
  },
}
SCSS
$custom: #291d72;
$custom-light: #6d5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#291d72",
  "rgb": {
    "r": 41,
    "g": 29,
    "b": 114
  },
  "hsl": {
    "h": 248.471,
    "s": 59.441,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30873,
    "c": 0.13792,
    "h": 281
  },
  "luminance": 0.02565
}

Semantic roles & 50–950 ramp

primary
#291D72
secondary
#98A645
accent
#E345CC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #291D72

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

Preview Lab → · Contrast checker → · Palette generator →

#291D72 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva