#291F8D#291F8D

#291F8D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.171 H 276.4°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#291F8D
RGBrgb(41, 31, 141)
HSLhsl(245, 64%, 34%)
HSVhsv(245, 78%, 55%)
CMYKcmyk(70.9%, 78%, 0%, 44.7%)
CIE-LABlab(21.48, 39.82, -58.68)
CIE-LCHlch(21.48, 70.92, 304.16°)
OKLaboklab(34.05% 0.0189 -0.1696)
OKLCHoklch(34.05% 0.171 276.4)
XYZxyz(6.2106, 3.3739, 25.5181)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F8D #838D1F
analogous
#1F4C8D #291F8D #601F8D
triadic
#291F8D #8D291F #1F8D29
tetradic
#291F8D #8D1F4C #838D1F #1F8D60
square
#291F8D #8D1F4C #838D1F #1F8D60
split-complementary
#291F8D #8D601F #4C8D1F
monochromatic
#0C0929 #1A145B #291F8D #382ABF #5B4ED8

Accessibility & contrast

On white

12.54
#291F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#291F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F8D
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F8D#FFFFFF#000000##FFFFFF
##291F8D1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #291f8d;
/* rgb */ color: rgb(41, 31, 141);
/* oklch */ color: oklch(34.1% 0.171 276.4);
Tailwind
colors: {
  custom: {
    50: '#735db0',
    500: '#291f8d',
    950: '#000000',
  },
}
SCSS
$custom: #291f8d;
$custom-light: #735db0;
$custom-dark: #000000;
JSON
{
  "hex": "#291f8d",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 245.455,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3405,
    "c": 0.17067,
    "h": 276.4
  },
  "luminance": 0.03374
}

Semantic roles & 50–950 ramp

primary
#291F8D
secondary
#B1BB4D
accent
#E741D8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #291F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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