#291F9E#291F9E

#291F9E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.0% C 0.191 H 274.4°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#291F9E
RGBrgb(41, 31, 158)
HSLhsl(245, 67%, 37%)
HSVhsv(245, 80%, 62%)
CMYKcmyk(74.1%, 80.4%, 0%, 38%)
CIE-LABlab(23.40, 45.32, -66.00)
CIE-LCHlch(23.40, 80.06, 304.48°)
OKLaboklab(35.96% 0.0147 -0.1909)
OKLCHoklch(35.96% 0.191 274.4)
XYZxyz(7.5739, 3.9193, 32.6985)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F9E #949E1F
analogous
#1F559E #291F9E #681F9E
triadic
#291F9E #9E291F #1F9E29
tetradic
#291F9E #9E1F55 #949E1F #1F9E68
square
#291F9E #9E1F55 #949E1F #1F9E68
split-complementary
#291F9E #9E681F #559E1F
monochromatic
#0E0B38 #1C156B #291F9E #3629D1 #6359DE

Accessibility & contrast

On white

11.77
#291F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#291F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F9E
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F9E#FFFFFF#000000##FFFFFF
##291F9E1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #291f9e;
/* rgb */ color: rgb(41, 31, 158);
/* oklch */ color: oklch(36.0% 0.191 274.4);
Tailwind
colors: {
  custom: {
    50: '#775ebc',
    500: '#291f9e',
    950: '#000000',
  },
}
SCSS
$custom: #291f9e;
$custom-light: #775ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#291f9e",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 244.724,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35959,
    "c": 0.19144,
    "h": 274.4
  },
  "luminance": 0.0392
}

Semantic roles & 50–950 ramp

primary
#291F9E
secondary
#BAC256
accent
#EA3EDD
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #291F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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