#291888#291888

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

Color values

HEX#291888
RGBrgb(41, 24, 136)
HSLhsl(249, 70%, 31%)
HSVhsv(249, 82%, 53%)
CMYKcmyk(69.9%, 82.4%, 0%, 46.7%)
CIE-LABlab(19.65, 41.88, -58.59)
CIE-LCHlch(19.65, 72.02, 305.55°)
OKLaboklab(32.6% 0.0238 -0.1693)
OKLCHoklch(32.6% 0.171 278)
XYZxyz(5.6836, 2.9018, 23.5484)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291888 #778818
analogous
#183F88 #291888 #611888
triadic
#291888 #882918 #188829
tetradic
#291888 #88183F #778818 #188861
square
#291888 #88183F #778818 #188861
split-complementary
#291888 #886118 #3F8818
monochromatic
#0A0620 #190F54 #291888 #3921BC #563EDD

Accessibility & contrast

On white

13.29
#291888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291888
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291888#FFFFFF#000000##FFFFFF
##2918881.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002B86
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #291888;
/* rgb */ color: rgb(41, 24, 136);
/* oklch */ color: oklch(32.6% 0.171 278.0);
Tailwind
colors: {
  custom: {
    50: '#7259ac',
    500: '#291888',
    950: '#000000',
  },
}
SCSS
$custom: #291888;
$custom-light: #7259ac;
$custom-dark: #000000;
JSON
{
  "hex": "#291888",
  "rgb": {
    "r": 41,
    "g": 24,
    "b": 136
  },
  "hsl": {
    "h": 249.107,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.326,
    "c": 0.17093,
    "h": 278
  },
  "luminance": 0.02902
}

Semantic roles & 50–950 ramp

primary
#291888
secondary
#A9BC40
accent
#ED3BD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #291888

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

Preview Lab → · Contrast checker → · Palette generator →

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