#291F79#291F79

#291F79 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.145 H 279.3°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#291F79
RGBrgb(41, 31, 121)
HSLhsl(247, 59%, 30%)
HSVhsv(247, 74%, 47%)
CMYKcmyk(66.1%, 74.4%, 0%, 52.5%)
CIE-LABlab(19.36, 33.12, -49.57)
CIE-LCHlch(19.36, 59.61, 303.75°)
OKLaboklab(31.91% 0.0234 -0.143)
OKLCHoklch(31.91% 0.145 279.3)
XYZxyz(4.8545, 2.8315, 18.3762)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F79 #6F791F
analogous
#1F4279 #291F79 #561F79
triadic
#291F79 #79291F #1F7929
tetradic
#291F79 #791F42 #6F791F #1F7956
square
#291F79 #791F42 #6F791F #1F7956
split-complementary
#291F79 #79561F #42791F
monochromatic
#080618 #181348 #291F79 #3A2BAA #5343CF

Accessibility & contrast

On white

13.41
#291F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291F79
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F79#FFFFFF#000000##FFFFFF
##291F791.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #291f79;
/* rgb */ color: rgb(41, 31, 121);
/* oklch */ color: oklch(31.9% 0.145 279.3);
Tailwind
colors: {
  custom: {
    50: '#6e5ca1',
    500: '#291f79',
    950: '#000000',
  },
}
SCSS
$custom: #291f79;
$custom-light: #6e5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#291f79",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 246.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31907,
    "c": 0.14493,
    "h": 279.3
  },
  "luminance": 0.02832
}

Semantic roles & 50–950 ramp

primary
#291F79
secondary
#A1AC47
accent
#E245D1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #291F79

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

Preview Lab → · Contrast checker → · Palette generator →

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