#2A1992#2A1992

#2A1992 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.182 H 276.9°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#2A1992
RGBrgb(42, 25, 146)
HSLhsl(248, 71%, 34%)
HSVhsv(248, 83%, 57%)
CMYKcmyk(71.2%, 82.9%, 0%, 42.7%)
CIE-LABlab(21.06, 44.59, -62.48)
CIE-LCHlch(21.06, 76.76, 305.52°)
OKLaboklab(33.95% 0.0218 -0.1805)
OKLCHoklch(33.95% 0.182 276.9)
XYZxyz(6.4891, 3.2622, 27.4763)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1992 #819219
analogous
#194492 #2A1992 #661992
triadic
#2A1992 #922A19 #19922A
tetradic
#2A1992 #921944 #819219 #199266
square
#2A1992 #921944 #819219 #199266
split-complementary
#2A1992 #926619 #449219
monochromatic
#0C0729 #1B105E #2A1992 #3922C6 #5C46DF

Accessibility & contrast

On white

12.71
#2A1992 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2A1992 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1992
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1992#FFFFFF#000000##FFFFFF
##2A19921.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003795
Deuteranopia (green-blind)
#002D90
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a1992;
/* rgb */ color: rgb(42, 25, 146);
/* oklch */ color: oklch(33.9% 0.182 276.9);
Tailwind
colors: {
  custom: {
    50: '#755ab3',
    500: '#2a1992',
    950: '#000000',
  },
}
SCSS
$custom: #2a1992;
$custom-light: #755ab3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1992",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 146
  },
  "hsl": {
    "h": 248.43,
    "s": 70.76,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33946,
    "c": 0.18186,
    "h": 276.9
  },
  "luminance": 0.03263
}

Semantic roles & 50–950 ramp

primary
#2A1992
secondary
#AFC146
accent
#EE3AD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1992

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

Preview Lab → · Contrast checker → · Palette generator →

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