#291F7D#291F7D

#291F7D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.150 H 278.6°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#291F7D
RGBrgb(41, 31, 125)
HSLhsl(246, 60%, 31%)
HSVhsv(246, 75%, 49%)
CMYKcmyk(67.2%, 75.2%, 0%, 51%)
CIE-LABlab(19.77, 34.48, -51.44)
CIE-LCHlch(19.77, 61.92, 303.83°)
OKLaboklab(32.32% 0.0226 -0.1485)
OKLCHoklch(32.32% 0.15 278.6)
XYZxyz(5.1049, 2.9316, 19.6949)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F7D #737D1F
analogous
#1F447D #291F7D #581F7D
triadic
#291F7D #7D291F #1F7D29
tetradic
#291F7D #7D1F44 #737D1F #1F7D58
square
#291F7D #7D1F44 #737D1F #1F7D58
split-complementary
#291F7D #7D581F #447D1F
monochromatic
#09071B #19134C #291F7D #392BAE #5445D1

Accessibility & contrast

On white

13.24
#291F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#291F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F7D
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F7D#FFFFFF#000000##FFFFFF
##291F7D1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #291f7d;
/* rgb */ color: rgb(41, 31, 125);
/* oklch */ color: oklch(32.3% 0.150 278.6);
Tailwind
colors: {
  custom: {
    50: '#6f5ca4',
    500: '#291f7d',
    950: '#000000',
  },
}
SCSS
$custom: #291f7d;
$custom-light: #6f5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#291f7d",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 246.383,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32325,
    "c": 0.15021,
    "h": 278.6
  },
  "luminance": 0.02932
}

Semantic roles & 50–950 ramp

primary
#291F7D
secondary
#A5B048
accent
#E344D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #291F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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