#291F75#291F75

#291F75 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.140 H 280.0°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#291F75
RGBrgb(41, 31, 117)
HSLhsl(247, 58%, 29%)
HSVhsv(247, 74%, 46%)
CMYKcmyk(65%, 73.5%, 0%, 54.1%)
CIE-LABlab(18.95, 31.75, -47.67)
CIE-LCHlch(18.95, 57.27, 303.66°)
OKLaboklab(31.5% 0.0242 -0.1375)
OKLCHoklch(31.5% 0.14 280)
XYZxyz(4.6143, 2.7354, 17.1110)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F75 #6B751F
analogous
#1F4075 #291F75 #541F75
triadic
#291F75 #75291F #1F7529
tetradic
#291F75 #751F40 #6B751F #1F7554
square
#291F75 #751F40 #6B751F #1F7554
split-complementary
#291F75 #75541F #40751F
monochromatic
#080618 #181245 #291F75 #3A2CA5 #5242CD

Accessibility & contrast

On white

13.57
#291F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#291F75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F75
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F75#FFFFFF#000000##FFFFFF
##291F751.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003178
Deuteranopia (green-blind)
#002B73
Tritanopia (blue-blind)
#003647
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #291f75;
/* rgb */ color: rgb(41, 31, 117);
/* oklch */ color: oklch(31.5% 0.140 280.0);
Tailwind
colors: {
  custom: {
    50: '#6d5c9e',
    500: '#291f75',
    950: '#000000',
  },
}
SCSS
$custom: #291f75;
$custom-light: #6d5c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#291f75",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 117
  },
  "hsl": {
    "h": 246.977,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31495,
    "c": 0.13959,
    "h": 280
  },
  "luminance": 0.02736
}

Semantic roles & 50–950 ramp

primary
#291F75
secondary
#9DA947
accent
#E146CF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #291F75

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

Preview Lab → · Contrast checker → · Palette generator →

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