#291C7B#291C7B

#291C7B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.151 H 279.6°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#291C7B
RGBrgb(41, 28, 123)
HSLhsl(248, 63%, 30%)
HSVhsv(248, 77%, 48%)
CMYKcmyk(66.7%, 77.2%, 0%, 51.8%)
CIE-LABlab(18.94, 35.55, -51.54)
CIE-LCHlch(18.94, 62.61, 304.60°)
OKLaboklab(31.67% 0.0251 -0.1488)
OKLCHoklch(31.67% 0.151 279.6)
XYZxyz(4.9037, 2.7316, 19.0039)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291C7B #6E7B1C
analogous
#1C3E7B #291C7B #591C7B
triadic
#291C7B #7B291C #1C7B29
tetradic
#291C7B #7B1C3E #6E7B1C #1C7B59
square
#291C7B #7B1C3E #6E7B1C #1C7B59
split-complementary
#291C7B #7B591C #3E7B1C
monochromatic
#080619 #181149 #291C7B #3A27AD #533ED3

Accessibility & contrast

On white

13.58
#291C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#291C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291C7B
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291C7B#FFFFFF#000000##FFFFFF
##291C7B1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #291c7b;
/* rgb */ color: rgb(41, 28, 123);
/* oklch */ color: oklch(31.7% 0.151 279.6);
Tailwind
colors: {
  custom: {
    50: '#6f5aa2',
    500: '#291c7b',
    950: '#000000',
  },
}
SCSS
$custom: #291c7b;
$custom-light: #6f5aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#291c7b",
  "rgb": {
    "r": 41,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 248.211,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31672,
    "c": 0.15086,
    "h": 279.6
  },
  "luminance": 0.02732
}

Semantic roles & 50–950 ramp

primary
#291C7B
secondary
#A0AF44
accent
#E642D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #291C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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