#2A1B93#2A1B93

#2A1B93 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.181 H 276.5°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#2A1B93
RGBrgb(42, 27, 147)
HSLhsl(248, 69%, 34%)
HSVhsv(248, 82%, 58%)
CMYKcmyk(71.4%, 81.6%, 0%, 42.4%)
CIE-LABlab(21.51, 43.94, -62.36)
CIE-LCHlch(21.51, 76.28, 305.17°)
OKLaboklab(34.29% 0.0207 -0.1802)
OKLCHoklch(34.29% 0.181 276.5)
XYZxyz(6.6115, 3.3821, 27.9025)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B93 #84931B
analogous
#1B4893 #2A1B93 #661B93
triadic
#2A1B93 #932A1B #1B932A
tetradic
#2A1B93 #931B48 #84931B #1B9366
square
#2A1B93 #931B48 #84931B #1B9366
split-complementary
#2A1B93 #93661B #48931B
monochromatic
#0C082C #1B125F #2A1B93 #3924C7 #5D4BDE

Accessibility & contrast

On white

12.53
#2A1B93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1B93
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B93#FFFFFF#000000##FFFFFF
##2A1B931.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003896
Deuteranopia (green-blind)
#002E91
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a1b93;
/* rgb */ color: rgb(42, 27, 147);
/* oklch */ color: oklch(34.3% 0.181 276.5);
Tailwind
colors: {
  custom: {
    50: '#755bb4',
    500: '#2a1b93',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b93;
$custom-light: #755bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b93",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 147
  },
  "hsl": {
    "h": 247.5,
    "s": 68.966,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34291,
    "c": 0.18141,
    "h": 276.5
  },
  "luminance": 0.03383
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1B93

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

Preview Lab → · Contrast checker → · Palette generator →

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