#291B71#291B71

#291B71 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.139 H 281.7°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#291B71
RGBrgb(41, 27, 113)
HSLhsl(250, 61%, 27%)
HSVhsv(250, 76%, 44%)
CMYKcmyk(63.7%, 76.1%, 0%, 55.7%)
CIE-LABlab(17.68, 32.80, -47.18)
CIE-LCHlch(17.68, 57.46, 304.81°)
OKLaboklab(30.46% 0.0282 -0.136)
OKLCHoklch(30.46% 0.139 281.7)
XYZxyz(4.2861, 2.4472, 15.8661)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B71 #63711B
analogous
#1B3871 #291B71 #541B71
triadic
#291B71 #71291B #1B7129
tetradic
#291B71 #711B38 #63711B #1B7154
square
#291B71 #711B38 #63711B #1B7154
split-complementary
#291B71 #71541B #38711B
monochromatic
#090619 #170F40 #291B71 #3B27A2 #5037CF

Accessibility & contrast

On white

14.10
#291B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#291B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291B71
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B71#FFFFFF#000000##FFFFFF
##291B711.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #291b71;
/* rgb */ color: rgb(41, 27, 113);
/* oklch */ color: oklch(30.5% 0.139 281.7);
Tailwind
colors: {
  custom: {
    50: '#6d599b',
    500: '#291b71',
    950: '#000000',
  },
}
SCSS
$custom: #291b71;
$custom-light: #6d599b;
$custom-dark: #000000;
JSON
{
  "hex": "#291b71",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 249.767,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30465,
    "c": 0.13892,
    "h": 281.7
  },
  "luminance": 0.02448
}

Semantic roles & 50–950 ramp

primary
#291B71
secondary
#96A642
accent
#E543CA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #291B71

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

Preview Lab → · Contrast checker → · Palette generator →

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