#291FA5#291FA5

#291FA5 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.200 H 273.7°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#291FA5
RGBrgb(41, 31, 165)
HSLhsl(244, 68%, 38%)
HSVhsv(244, 81%, 65%)
CMYKcmyk(75.2%, 81.2%, 0%, 35.3%)
CIE-LABlab(24.22, 47.53, -68.91)
CIE-LCHlch(24.22, 83.71, 304.60°)
OKLaboklab(36.76% 0.0129 -0.1993)
OKLCHoklch(36.76% 0.2 273.7)
XYZxyz(8.1937, 4.1672, 35.9625)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291FA5 #9BA51F
analogous
#1F58A5 #291FA5 #6C1FA5
triadic
#291FA5 #A5291F #1FA529
tetradic
#291FA5 #A51F58 #9BA51F #1FA56C
square
#291FA5 #A51F58 #9BA51F #1FA56C
split-complementary
#291FA5 #A56C1F #58A51F
monochromatic
#0F0C3E #1C1571 #291FA5 #372AD7 #675EE1

Accessibility & contrast

On white

11.45
#291FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#291FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291FA5
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291FA5#FFFFFF#000000##FFFFFF
##291FA51.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A9
Deuteranopia (green-blind)
#0033A3
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #291fa5;
/* rgb */ color: rgb(41, 31, 165);
/* oklch */ color: oklch(36.8% 0.200 273.7);
Tailwind
colors: {
  custom: {
    50: '#785fc1',
    500: '#291fa5',
    950: '#000000',
  },
}
SCSS
$custom: #291fa5;
$custom-light: #785fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#291fa5",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 244.478,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.36762,
    "c": 0.19975,
    "h": 273.7
  },
  "luminance": 0.04168
}

Semantic roles & 50–950 ramp

primary
#291FA5
secondary
#BDC55B
accent
#EB3DDE
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #291FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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