#291D7E#291D7E

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

Color values

HEX#291D7E
RGBrgb(41, 29, 126)
HSLhsl(247, 63%, 30%)
HSVhsv(247, 77%, 49%)
CMYKcmyk(67.5%, 77%, 0%, 50.6%)
CIE-LABlab(19.46, 35.98, -52.59)
CIE-LCHlch(19.46, 63.72, 304.38°)
OKLaboklab(32.14% 0.0237 -0.1518)
OKLCHoklch(32.14% 0.154 278.9)
XYZxyz(5.1185, 2.8561, 20.0162)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291D7E #727E1D
analogous
#1D417E #291D7E #5A1D7E
triadic
#291D7E #7E291D #1D7E29
tetradic
#291D7E #7E1D41 #727E1D #1D7E5A
square
#291D7E #7E1D41 #727E1D #1D7E5A
split-complementary
#291D7E #7E5A1D #417E1D
monochromatic
#09061B #19124C #291D7E #3928B0 #5442D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##291D7E#FFFFFF#000000##FFFFFF
##291D7E1.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)
#003381
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #291d7e;
/* rgb */ color: rgb(41, 29, 126);
/* oklch */ color: oklch(32.1% 0.154 278.9);
Tailwind
colors: {
  custom: {
    50: '#6f5ba4',
    500: '#291d7e',
    950: '#000000',
  },
}
SCSS
$custom: #291d7e;
$custom-light: #6f5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#291d7e",
  "rgb": {
    "r": 41,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 247.423,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32137,
    "c": 0.15367,
    "h": 278.9
  },
  "luminance": 0.02857
}

Semantic roles & 50–950 ramp

primary
#291D7E
secondary
#A4B145
accent
#E642D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #291D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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