#291F8F#291F8F

#291F8F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.173 H 276.1°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#291F8F
RGBrgb(41, 31, 143)
HSLhsl(245, 64%, 34%)
HSVhsv(245, 78%, 56%)
CMYKcmyk(71.3%, 78.3%, 0%, 43.9%)
CIE-LABlab(21.70, 40.48, -59.56)
CIE-LCHlch(21.70, 72.02, 304.20°)
OKLaboklab(34.27% 0.0184 -0.1722)
OKLCHoklch(34.27% 0.173 276.1)
XYZxyz(6.3607, 3.4340, 26.3089)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F8F #858F1F
analogous
#1F4D8F #291F8F #611F8F
triadic
#291F8F #8F291F #1F8F29
tetradic
#291F8F #8F1F4D #858F1F #1F8F61
square
#291F8F #8F1F4D #858F1F #1F8F61
split-complementary
#291F8F #8F611F #4D8F1F
monochromatic
#0C092A #1B145D #291F8F #372AC1 #5C4FD9

Accessibility & contrast

On white

12.45
#291F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#291F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F8F
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F8F#FFFFFF#000000##FFFFFF
##291F8F1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #291f8f;
/* rgb */ color: rgb(41, 31, 143);
/* oklch */ color: oklch(34.3% 0.173 276.1);
Tailwind
colors: {
  custom: {
    50: '#735db1',
    500: '#291f8f',
    950: '#000000',
  },
}
SCSS
$custom: #291f8f;
$custom-light: #735db1;
$custom-dark: #000000;
JSON
{
  "hex": "#291f8f",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 245.357,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34271,
    "c": 0.17316,
    "h": 276.1
  },
  "luminance": 0.03435
}

Semantic roles & 50–950 ramp

primary
#291F8F
secondary
#B2BC4E
accent
#E740D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #291F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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