#291D7C#291D7C

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

Color values

HEX#291D7C
RGBrgb(41, 29, 124)
HSLhsl(248, 62%, 30%)
HSVhsv(248, 77%, 49%)
CMYKcmyk(66.9%, 76.6%, 0%, 51.4%)
CIE-LABlab(19.25, 35.31, -51.66)
CIE-LCHlch(19.25, 62.58, 304.35°)
OKLaboklab(31.92% 0.0242 -0.1491)
OKLCHoklch(31.92% 0.151 279.2)
XYZxyz(4.9907, 2.8050, 19.3433)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291D7C #707C1D
analogous
#1D407C #291D7C #591D7C
triadic
#291D7C #7C291D #1D7C29
tetradic
#291D7C #7C1D40 #707C1D #1D7C59
square
#291D7C #7C1D40 #707C1D #1D7C59
split-complementary
#291D7C #7C591D #407C1D
monochromatic
#080619 #19114A #291D7C #3929AE #5341D3

Accessibility & contrast

On white

13.45
#291D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#291D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291D7C
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291D7C#FFFFFF#000000##FFFFFF
##291D7C1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #291d7c;
/* rgb */ color: rgb(41, 29, 124);
/* oklch */ color: oklch(31.9% 0.151 279.2);
Tailwind
colors: {
  custom: {
    50: '#6f5ba3',
    500: '#291d7c',
    950: '#000000',
  },
}
SCSS
$custom: #291d7c;
$custom-light: #6f5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#291d7c",
  "rgb": {
    "r": 41,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 247.579,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.31923,
    "c": 0.15109,
    "h": 279.2
  },
  "luminance": 0.02805
}

Semantic roles & 50–950 ramp

primary
#291D7C
secondary
#A2B045
accent
#E543D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #291D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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