#291F9F#291F9F

#291F9F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.193 H 274.3°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#291F9F
RGBrgb(41, 31, 159)
HSLhsl(245, 67%, 37%)
HSVhsv(245, 81%, 62%)
CMYKcmyk(74.2%, 80.5%, 0%, 37.6%)
CIE-LABlab(23.52, 45.64, -66.42)
CIE-LCHlch(23.52, 80.59, 304.50°)
OKLaboklab(36.07% 0.0144 -0.1921)
OKLCHoklch(36.07% 0.193 274.3)
XYZxyz(7.6604, 3.9538, 33.1536)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F9F #959F1F
analogous
#1F559F #291F9F #691F9F
triadic
#291F9F #9F291F #1F9F29
tetradic
#291F9F #9F1F55 #959F1F #1F9F69
square
#291F9F #9F1F55 #959F1F #1F9F69
split-complementary
#291F9F #9F691F #559F1F
monochromatic
#0F0B39 #1C156C #291F9F #3629D2 #645ADF

Accessibility & contrast

On white

11.73
#291F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#291F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F9F
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F9F#FFFFFF#000000##FFFFFF
##291F9F1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #291f9f;
/* rgb */ color: rgb(41, 31, 159);
/* oklch */ color: oklch(36.1% 0.193 274.3);
Tailwind
colors: {
  custom: {
    50: '#775ebd',
    500: '#291f9f',
    950: '#000000',
  },
}
SCSS
$custom: #291f9f;
$custom-light: #775ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#291f9f",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 244.688,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36073,
    "c": 0.19264,
    "h": 274.3
  },
  "luminance": 0.03955
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #291F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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