#291F8A#291F8A

#291F8A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.167 H 276.8°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#291F8A
RGBrgb(41, 31, 138)
HSLhsl(246, 63%, 33%)
HSVhsv(246, 78%, 54%)
CMYKcmyk(70.3%, 77.5%, 0%, 45.9%)
CIE-LABlab(21.15, 38.83, -57.35)
CIE-LCHlch(21.15, 69.26, 304.10°)
OKLaboklab(33.72% 0.0196 -0.1657)
OKLCHoklch(33.72% 0.167 276.8)
XYZxyz(5.9904, 3.2858, 24.3584)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F8A #808A1F
analogous
#1F4B8A #291F8A #5E1F8A
triadic
#291F8A #8A291F #1F8A29
tetradic
#291F8A #8A1F4B #808A1F #1F8A5E
square
#291F8A #8A1F4B #808A1F #1F8A5E
split-complementary
#291F8A #8A5E1F #4B8A1F
monochromatic
#0B0926 #1A1458 #291F8A #382ABC #594CD7

Accessibility & contrast

On white

12.67
#291F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#291F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F8A
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F8A#FFFFFF#000000##FFFFFF
##291F8A1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #291f8a;
/* rgb */ color: rgb(41, 31, 138);
/* oklch */ color: oklch(33.7% 0.167 276.8);
Tailwind
colors: {
  custom: {
    50: '#725dad',
    500: '#291f8a',
    950: '#000000',
  },
}
SCSS
$custom: #291f8a;
$custom-light: #725dad;
$custom-dark: #000000;
JSON
{
  "hex": "#291f8a",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 245.607,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33721,
    "c": 0.1669,
    "h": 276.8
  },
  "luminance": 0.03286
}

Semantic roles & 50–950 ramp

primary
#291F8A
secondary
#AFBA4B
accent
#E641D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #291F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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