#291B7A#291B7A

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

Color values

HEX#291B7A
RGBrgb(41, 27, 122)
HSLhsl(249, 64%, 29%)
HSVhsv(249, 78%, 48%)
CMYKcmyk(66.4%, 77.9%, 0%, 52.2%)
CIE-LABlab(18.63, 35.79, -51.41)
CIE-LCHlch(18.63, 62.64, 304.85°)
OKLaboklab(31.42% 0.026 -0.1484)
OKLCHoklch(31.42% 0.151 280)
XYZxyz(4.8181, 2.6600, 18.6681)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B7A #6C7A1B
analogous
#1B3D7A #291B7A #591B7A
triadic
#291B7A #7A291B #1B7A29
tetradic
#291B7A #7A1B3D #6C7A1B #1B7A59
square
#291B7A #7A1B3D #6C7A1B #1B7A59
split-complementary
#291B7A #7A591B #3D7A1B
monochromatic
#080619 #181048 #291B7A #3A26AC #523CD4

Accessibility & contrast

On white

13.71
#291B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#291B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291B7A
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B7A#FFFFFF#000000##FFFFFF
##291B7A1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #291b7a;
/* rgb */ color: rgb(41, 27, 122);
/* oklch */ color: oklch(31.4% 0.151 280.0);
Tailwind
colors: {
  custom: {
    50: '#6f5aa1',
    500: '#291b7a',
    950: '#000000',
  },
}
SCSS
$custom: #291b7a;
$custom-light: #6f5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#291b7a",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 248.842,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31422,
    "c": 0.15064,
    "h": 280
  },
  "luminance": 0.0266
}

Semantic roles & 50–950 ramp

primary
#291B7A
secondary
#9EAE43
accent
#E741CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #291B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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