#2A1B92#2A1B92

#2A1B92 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.180 H 276.7°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#2A1B92
RGBrgb(42, 27, 146)
HSLhsl(248, 69%, 34%)
HSVhsv(248, 82%, 57%)
CMYKcmyk(71.2%, 81.5%, 0%, 42.7%)
CIE-LABlab(21.40, 43.62, -61.93)
CIE-LCHlch(21.40, 75.75, 305.16°)
OKLaboklab(34.18% 0.021 -0.179)
OKLCHoklch(34.18% 0.18 276.7)
XYZxyz(6.5334, 3.3508, 27.4910)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B92 #83921B
analogous
#1B4892 #2A1B92 #661B92
triadic
#2A1B92 #922A1B #1B922A
tetradic
#2A1B92 #921B48 #83921B #1B9266
square
#2A1B92 #921B48 #83921B #1B9266
split-complementary
#2A1B92 #92661B #48921B
monochromatic
#0C082B #1B115E #2A1B92 #3925C6 #5D4ADE

Accessibility & contrast

On white

12.57
#2A1B92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2A1B92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B92
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B92#FFFFFF#000000##FFFFFF
##2A1B921.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003895
Deuteranopia (green-blind)
#002E90
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a1b92;
/* rgb */ color: rgb(42, 27, 146);
/* oklch */ color: oklch(34.2% 0.180 276.7);
Tailwind
colors: {
  custom: {
    50: '#755bb3',
    500: '#2a1b92',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b92;
$custom-light: #755bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b92",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 146
  },
  "hsl": {
    "h": 247.563,
    "s": 68.786,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34177,
    "c": 0.1802,
    "h": 276.7
  },
  "luminance": 0.03351
}

Semantic roles & 50–950 ramp

primary
#2A1B92
secondary
#B1BF49
accent
#EC3CD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1B92

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

Preview Lab → · Contrast checker → · Palette generator →

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