#291F7E#291F7E

#291F7E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.152 H 278.5°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#291F7E
RGBrgb(41, 31, 126)
HSLhsl(246, 61%, 31%)
HSVhsv(246, 75%, 49%)
CMYKcmyk(67.5%, 75.4%, 0%, 50.6%)
CIE-LABlab(19.87, 34.81, -51.90)
CIE-LCHlch(19.87, 62.50, 303.85°)
OKLaboklab(32.43% 0.0224 -0.1498)
OKLCHoklch(32.43% 0.152 278.5)
XYZxyz(5.1691, 2.9573, 20.0330)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F7E #747E1F
analogous
#1F447E #291F7E #581F7E
triadic
#291F7E #7E291F #1F7E29
tetradic
#291F7E #7E1F44 #747E1F #1F7E58
square
#291F7E #7E1F44 #747E1F #1F7E58
split-complementary
#291F7E #7E581F #447E1F
monochromatic
#09071C #19134D #291F7E #392BAF #5546D1

Accessibility & contrast

On white

13.19
#291F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#291F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F7E
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F7E#FFFFFF#000000##FFFFFF
##291F7E1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #291f7e;
/* rgb */ color: rgb(41, 31, 126);
/* oklch */ color: oklch(32.4% 0.152 278.5);
Tailwind
colors: {
  custom: {
    50: '#6f5ca4',
    500: '#291f7e',
    950: '#000000',
  },
}
SCSS
$custom: #291f7e;
$custom-light: #6f5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#291f7e",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 246.316,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3243,
    "c": 0.15151,
    "h": 278.5
  },
  "luminance": 0.02958
}

Semantic roles & 50–950 ramp

primary
#291F7E
secondary
#A6B148
accent
#E444D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #291F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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