#291F7A#291F7A

#291F7A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.146 H 279.1°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#291F7A
RGBrgb(41, 31, 122)
HSLhsl(247, 59%, 30%)
HSVhsv(247, 75%, 48%)
CMYKcmyk(66.4%, 74.6%, 0%, 52.2%)
CIE-LABlab(19.46, 33.46, -50.04)
CIE-LCHlch(19.46, 60.19, 303.77°)
OKLaboklab(32.01% 0.0232 -0.1444)
OKLCHoklch(32.01% 0.146 279.1)
XYZxyz(4.9162, 2.8561, 18.7008)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F7A #707A1F
analogous
#1F437A #291F7A #561F7A
triadic
#291F7A #7A291F #1F7A29
tetradic
#291F7A #7A1F43 #707A1F #1F7A56
square
#291F7A #7A1F43 #707A1F #1F7A56
split-complementary
#291F7A #7A561F #437A1F
monochromatic
#080618 #191349 #291F7A #392BAB #5344CF

Accessibility & contrast

On white

13.36
#291F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#291F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F7A
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F7A#FFFFFF#000000##FFFFFF
##291F7A1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #291f7a;
/* rgb */ color: rgb(41, 31, 122);
/* oklch */ color: oklch(32.0% 0.146 279.1);
Tailwind
colors: {
  custom: {
    50: '#6e5ca1',
    500: '#291f7a',
    950: '#000000',
  },
}
SCSS
$custom: #291f7a;
$custom-light: #6e5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#291f7a",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 246.593,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.32011,
    "c": 0.14625,
    "h": 279.1
  },
  "luminance": 0.02857
}

Semantic roles & 50–950 ramp

primary
#291F7A
secondary
#A2AD47
accent
#E345D1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #291F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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