#291FAB#291FAB

#291FAB is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.5% C 0.207 H 273.2°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#291FAB
RGBrgb(41, 31, 171)
HSLhsl(244, 69%, 40%)
HSVhsv(244, 82%, 67%)
CMYKcmyk(76%, 81.9%, 0%, 32.9%)
CIE-LABlab(24.92, 49.40, -71.36)
CIE-LCHlch(24.92, 86.79, 304.69°)
OKLaboklab(37.46% 0.0114 -0.2064)
OKLCHoklch(37.46% 0.207 273.2)
XYZxyz(8.7527, 4.3907, 38.9064)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291FAB #A1AB1F
analogous
#1F5BAB #291FAB #6F1FAB
triadic
#291FAB #AB291F #1FAB29
tetradic
#291FAB #AB1F5B #A1AB1F #1FAB6F
square
#291FAB #AB1F5B #A1AB1F #1FAB6F
split-complementary
#291FAB #AB6F1F #5BAB1F
monochromatic
#100C43 #1D1677 #291FAB #3A2ED9 #6B62E3

Accessibility & contrast

On white

11.18
#291FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#291FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291FAB
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291FAB#FFFFFF#000000##FFFFFF
##291FAB1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AF
Deuteranopia (green-blind)
#0034A9
Tritanopia (blue-blind)
#004B66
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #291fab;
/* rgb */ color: rgb(41, 31, 171);
/* oklch */ color: oklch(37.5% 0.207 273.2);
Tailwind
colors: {
  custom: {
    50: '#7a5fc5',
    500: '#291fab',
    950: '#000000',
  },
}
SCSS
$custom: #291fab;
$custom-light: #7a5fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#291fab",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 171
  },
  "hsl": {
    "h": 244.286,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37458,
    "c": 0.20676,
    "h": 273.2
  },
  "luminance": 0.04392
}

Semantic roles & 50–950 ramp

primary
#291FAB
secondary
#C0C75E
accent
#EC3CE0
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #291FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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