#291789#291789

#291789 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.173 H 278.0°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#291789
RGBrgb(41, 23, 137)
HSLhsl(249, 71%, 31%)
HSVhsv(249, 83%, 54%)
CMYKcmyk(70.1%, 83.2%, 0%, 46.3%)
CIE-LABlab(19.60, 42.67, -59.30)
CIE-LCHlch(19.60, 73.06, 305.74°)
OKLaboklab(32.6% 0.024 -0.1713)
OKLCHoklch(32.6% 0.173 278)
XYZxyz(5.7347, 2.8898, 23.9176)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291789 #778917
analogous
#173E89 #291789 #621789
triadic
#291789 #892917 #178929
tetradic
#291789 #89173E #778917 #178962
square
#291789 #89173E #778917 #178962
split-complementary
#291789 #896217 #3E8917
monochromatic
#0A0520 #190E55 #291789 #3920BD #563CDE

Accessibility & contrast

On white

13.31
#291789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#291789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291789
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291789#FFFFFF#000000##FFFFFF
##2917891.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002B87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #291789;
/* rgb */ color: rgb(41, 23, 137);
/* oklch */ color: oklch(32.6% 0.173 278.0);
Tailwind
colors: {
  custom: {
    50: '#7258ad',
    500: '#291789',
    950: '#000000',
  },
}
SCSS
$custom: #291789;
$custom-light: #7258ad;
$custom-dark: #000000;
JSON
{
  "hex": "#291789",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 249.474,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.326,
    "c": 0.17298,
    "h": 278
  },
  "luminance": 0.0289
}

Semantic roles & 50–950 ramp

primary
#291789
secondary
#A9BD3F
accent
#EE3AD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #291789

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

Preview Lab → · Contrast checker → · Palette generator →

#291789 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva