#2A1996#2A1996

#2A1996 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.4% C 0.187 H 276.3°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#2A1996
RGBrgb(42, 25, 150)
HSLhsl(248, 71%, 34%)
HSVhsv(248, 83%, 59%)
CMYKcmyk(72%, 83.3%, 0%, 41.2%)
CIE-LABlab(21.54, 45.82, -64.17)
CIE-LCHlch(21.54, 78.85, 305.53°)
OKLaboklab(34.41% 0.0206 -0.1855)
OKLCHoklch(34.41% 0.187 276.3)
XYZxyz(6.8057, 3.3889, 29.1437)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1996 #859619
analogous
#194796 #2A1996 #691996
triadic
#2A1996 #962A19 #19962A
tetradic
#2A1996 #961947 #859619 #199669
square
#2A1996 #961947 #859619 #199669
split-complementary
#2A1996 #966919 #479619
monochromatic
#0D082D #1B1062 #2A1996 #3922CA #5D49E1

Accessibility & contrast

On white

12.51
#2A1996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2A1996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1996
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1996#FFFFFF#000000##FFFFFF
##2A19961.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003999
Deuteranopia (green-blind)
#002E94
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a1996;
/* rgb */ color: rgb(42, 25, 150);
/* oklch */ color: oklch(34.4% 0.187 276.3);
Tailwind
colors: {
  custom: {
    50: '#765ab6',
    500: '#2a1996',
    950: '#000000',
  },
}
SCSS
$custom: #2a1996;
$custom-light: #765ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1996",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 248.16,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34411,
    "c": 0.1866,
    "h": 276.3
  },
  "luminance": 0.0339
}

Semantic roles & 50–950 ramp

primary
#2A1996
secondary
#B2C249
accent
#EE3AD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1996

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

Preview Lab → · Contrast checker → · Palette generator →

#2A1996 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva