#291F93#291F93

#291F93 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.178 H 275.6°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#291F93
RGBrgb(41, 31, 147)
HSLhsl(245, 65%, 35%)
HSVhsv(245, 79%, 58%)
CMYKcmyk(72.1%, 78.9%, 0%, 42.4%)
CIE-LABlab(22.15, 41.79, -61.31)
CIE-LCHlch(22.15, 74.19, 304.28°)
OKLaboklab(34.72% 0.0174 -0.1772)
OKLCHoklch(34.72% 0.178 275.6)
XYZxyz(6.6692, 3.5573, 27.9333)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F93 #89931F
analogous
#1F4F93 #291F93 #631F93
triadic
#291F93 #93291F #1F9329
tetradic
#291F93 #931F4F #89931F #1F9363
square
#291F93 #931F4F #89931F #1F9363
split-complementary
#291F93 #93631F #4F931F
monochromatic
#0D0A2E #1B1460 #291F93 #372AC6 #5E52DA

Accessibility & contrast

On white

12.27
#291F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#291F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F93
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F93#FFFFFF#000000##FFFFFF
##291F931.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A96
Deuteranopia (green-blind)
#003091
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #291f93;
/* rgb */ color: rgb(41, 31, 147);
/* oklch */ color: oklch(34.7% 0.178 275.6);
Tailwind
colors: {
  custom: {
    50: '#745db4',
    500: '#291f93',
    950: '#000000',
  },
}
SCSS
$custom: #291f93;
$custom-light: #745db4;
$custom-dark: #000000;
JSON
{
  "hex": "#291f93",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 245.172,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34716,
    "c": 0.1781,
    "h": 275.6
  },
  "luminance": 0.03558
}

Semantic roles & 50–950 ramp

primary
#291F93
secondary
#B4BE50
accent
#E840DA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #291F93

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

Preview Lab → · Contrast checker → · Palette generator →

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