#291B7D#291B7D

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

Color values

HEX#291B7D
RGBrgb(41, 27, 125)
HSLhsl(249, 64%, 30%)
HSVhsv(249, 78%, 49%)
CMYKcmyk(67.2%, 78.4%, 0%, 51%)
CIE-LABlab(18.95, 36.78, -52.78)
CIE-LCHlch(18.95, 64.33, 304.87°)
OKLaboklab(31.75% 0.0253 -0.1524)
OKLCHoklch(31.75% 0.154 279.4)
XYZxyz(5.0069, 2.7355, 19.6622)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B7D #6F7D1B
analogous
#1B3E7D #291B7D #5A1B7D
triadic
#291B7D #7D291B #1B7D29
tetradic
#291B7D #7D1B3E #6F7D1B #1B7D5A
square
#291B7D #7D1B3E #6F7D1B #1B7D5A
split-complementary
#291B7D #7D5A1B #3E7D1B
monochromatic
#080519 #18104B #291B7D #3A26AF #533DD5

Accessibility & contrast

On white

13.57
#291B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291B7D
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B7D#FFFFFF#000000##FFFFFF
##291B7D1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #291b7d;
/* rgb */ color: rgb(41, 27, 125);
/* oklch */ color: oklch(31.7% 0.154 279.4);
Tailwind
colors: {
  custom: {
    50: '#6f5aa4',
    500: '#291b7d',
    950: '#000000',
  },
}
SCSS
$custom: #291b7d;
$custom-light: #6f5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#291b7d",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 248.571,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31748,
    "c": 0.15447,
    "h": 279.4
  },
  "luminance": 0.02736
}

Semantic roles & 50–950 ramp

primary
#291B7D
secondary
#A1B143
accent
#E740D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #291B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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