#291F95#291F95

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

Color values

HEX#291F95
RGBrgb(41, 31, 149)
HSLhsl(245, 66%, 35%)
HSVhsv(245, 79%, 58%)
CMYKcmyk(72.5%, 79.2%, 0%, 41.6%)
CIE-LABlab(22.38, 42.44, -62.17)
CIE-LCHlch(22.38, 75.27, 304.32°)
OKLaboklab(34.94% 0.0169 -0.1798)
OKLCHoklch(34.94% 0.181 275.4)
XYZxyz(6.8275, 3.6207, 28.7670)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F95 #8B951F
analogous
#1F5095 #291F95 #641F95
triadic
#291F95 #95291F #1F9529
tetradic
#291F95 #951F50 #8B951F #1F9564
square
#291F95 #951F50 #8B951F #1F9564
split-complementary
#291F95 #95641F #50951F
monochromatic
#0D0A30 #1B1462 #291F95 #372AC8 #5F53DB

Accessibility & contrast

On white

12.18
#291F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291F95
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F95#FFFFFF#000000##FFFFFF
##291F951.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.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: #291f95;
/* rgb */ color: rgb(41, 31, 149);
/* oklch */ color: oklch(34.9% 0.181 275.4);
Tailwind
colors: {
  custom: {
    50: '#755db5',
    500: '#291f95',
    950: '#000000',
  },
}
SCSS
$custom: #291f95;
$custom-light: #755db5;
$custom-dark: #000000;
JSON
{
  "hex": "#291f95",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 245.085,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3494,
    "c": 0.18056,
    "h": 275.4
  },
  "luminance": 0.03621
}

Semantic roles & 50–950 ramp

primary
#291F95
secondary
#B5BF51
accent
#E93FDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #291F95

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

Preview Lab → · Contrast checker → · Palette generator →

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