#291B7E#291B7E

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

Color values

HEX#291B7E
RGBrgb(41, 27, 126)
HSLhsl(248, 65%, 30%)
HSVhsv(248, 79%, 49%)
CMYKcmyk(67.5%, 78.6%, 0%, 50.6%)
CIE-LABlab(19.06, 37.11, -53.24)
CIE-LCHlch(19.06, 64.90, 304.87°)
OKLaboklab(31.86% 0.025 -0.1537)
OKLCHoklch(31.86% 0.156 279.2)
XYZxyz(5.0711, 2.7612, 20.0004)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B7E #707E1B
analogous
#1B3E7E #291B7E #5B1B7E
triadic
#291B7E #7E291B #1B7E29
tetradic
#291B7E #7E1B3E #707E1B #1B7E5B
square
#291B7E #7E1B3E #707E1B #1B7E5B
split-complementary
#291B7E #7E5B1B #3E7E1B
monochromatic
#080519 #19104C #291B7E #3926B0 #533ED6

Accessibility & contrast

On white

13.53
#291B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291B7E
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B7E#FFFFFF#000000##FFFFFF
##291B7E1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #291b7e;
/* rgb */ color: rgb(41, 27, 126);
/* oklch */ color: oklch(31.9% 0.156 279.2);
Tailwind
colors: {
  custom: {
    50: '#705aa4',
    500: '#291b7e',
    950: '#000000',
  },
}
SCSS
$custom: #291b7e;
$custom-light: #705aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#291b7e",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 248.485,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.31857,
    "c": 0.15574,
    "h": 279.2
  },
  "luminance": 0.02762
}

Semantic roles & 50–950 ramp

primary
#291B7E
secondary
#A2B243
accent
#E840D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #291B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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