#291F94#291F94

#291F94 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.179 H 275.5°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#291F94
RGBrgb(41, 31, 148)
HSLhsl(245, 65%, 35%)
HSVhsv(245, 79%, 58%)
CMYKcmyk(72.3%, 79.1%, 0%, 42%)
CIE-LABlab(22.26, 42.11, -61.74)
CIE-LCHlch(22.26, 74.73, 304.30°)
OKLaboklab(34.83% 0.0172 -0.1785)
OKLCHoklch(34.83% 0.179 275.5)
XYZxyz(6.7480, 3.5889, 28.3483)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F94 #8A941F
analogous
#1F5094 #291F94 #631F94
triadic
#291F94 #94291F #1F9429
tetradic
#291F94 #941F50 #8A941F #1F9463
square
#291F94 #941F50 #8A941F #1F9463
split-complementary
#291F94 #94631F #50941F
monochromatic
#0D0A2F #1B1461 #291F94 #372AC7 #5E53DB

Accessibility & contrast

On white

12.22
#291F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#291F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F94
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F94#FFFFFF#000000##FFFFFF
##291F941.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003092
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #291f94;
/* rgb */ color: rgb(41, 31, 148);
/* oklch */ color: oklch(34.8% 0.179 275.5);
Tailwind
colors: {
  custom: {
    50: '#745db5',
    500: '#291f94',
    950: '#000000',
  },
}
SCSS
$custom: #291f94;
$custom-light: #745db5;
$custom-dark: #000000;
JSON
{
  "hex": "#291f94",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 245.128,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34828,
    "c": 0.17933,
    "h": 275.5
  },
  "luminance": 0.0359
}

Semantic roles & 50–950 ramp

primary
#291F94
secondary
#B5BE51
accent
#E83FDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #291F94

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

Preview Lab → · Contrast checker → · Palette generator →

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