#291F7B#291F7B

#291F7B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.148 H 279.0°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#291F7B
RGBrgb(41, 31, 123)
HSLhsl(247, 60%, 30%)
HSVhsv(247, 75%, 48%)
CMYKcmyk(66.7%, 74.8%, 0%, 51.8%)
CIE-LABlab(19.56, 33.80, -50.51)
CIE-LCHlch(19.56, 60.77, 303.79°)
OKLaboklab(32.12% 0.023 -0.1458)
OKLCHoklch(32.12% 0.148 279)
XYZxyz(4.9784, 2.8811, 19.0288)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F7B #717B1F
analogous
#1F437B #291F7B #571F7B
triadic
#291F7B #7B291F #1F7B29
tetradic
#291F7B #7B1F43 #717B1F #1F7B57
square
#291F7B #7B1F43 #717B1F #1F7B57
split-complementary
#291F7B #7B571F #437B1F
monochromatic
#080619 #19134A #291F7B #392BAC #5444D0

Accessibility & contrast

On white

13.32
#291F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#291F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F7B
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F7B#FFFFFF#000000##FFFFFF
##291F7B1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002C79
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #291f7b;
/* rgb */ color: rgb(41, 31, 123);
/* oklch */ color: oklch(32.1% 0.148 279.0);
Tailwind
colors: {
  custom: {
    50: '#6f5ca2',
    500: '#291f7b',
    950: '#000000',
  },
}
SCSS
$custom: #291f7b;
$custom-light: #6f5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#291f7b",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 246.522,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32115,
    "c": 0.14757,
    "h": 279
  },
  "luminance": 0.02881
}

Semantic roles & 50–950 ramp

primary
#291F7B
secondary
#A3AE48
accent
#E345D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #291F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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