#291895#291895

#291895 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.186 H 276.1°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#291895
RGBrgb(41, 24, 149)
HSLhsl(248, 72%, 34%)
HSVhsv(248, 84%, 58%)
CMYKcmyk(72.5%, 83.9%, 0%, 41.6%)
CIE-LABlab(21.18, 45.90, -64.14)
CIE-LCHlch(21.18, 78.87, 305.59°)
OKLaboklab(34.11% 0.0199 -0.1854)
OKLCHoklch(34.11% 0.186 276.1)
XYZxyz(6.6641, 3.2940, 28.7125)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291895 #849518
analogous
#184695 #291895 #681895
triadic
#291895 #952918 #189529
tetradic
#291895 #951846 #849518 #189568
square
#291895 #951846 #849518 #189568
split-complementary
#291895 #956818 #469518
monochromatic
#0C072C #1A1060 #291895 #3820CA #5B46E1

Accessibility & contrast

On white

12.66
#291895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#291895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291895
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291895#FFFFFF#000000##FFFFFF
##2918951.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003898
Deuteranopia (green-blind)
#002D93
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #291895;
/* rgb */ color: rgb(41, 24, 149);
/* oklch */ color: oklch(34.1% 0.186 276.1);
Tailwind
colors: {
  custom: {
    50: '#755ab5',
    500: '#291895',
    950: '#000000',
  },
}
SCSS
$custom: #291895;
$custom-light: #755ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#291895",
  "rgb": {
    "r": 41,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 248.16,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34112,
    "c": 0.18644,
    "h": 276.1
  },
  "luminance": 0.03295
}

Semantic roles & 50–950 ramp

primary
#291895
secondary
#B2C246
accent
#EF39D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #291895

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

Preview Lab → · Contrast checker → · Palette generator →

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