#2A1B95#2A1B95

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

Color values

HEX#2A1B95
RGBrgb(42, 27, 149)
HSLhsl(247, 69%, 35%)
HSVhsv(247, 82%, 58%)
CMYKcmyk(71.8%, 81.9%, 0%, 41.6%)
CIE-LABlab(21.75, 44.56, -63.21)
CIE-LCHlch(21.75, 77.34, 305.18°)
OKLaboklab(34.52% 0.0201 -0.1827)
OKLCHoklch(34.52% 0.184 276.3)
XYZxyz(6.7698, 3.4454, 28.7362)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B95 #86951B
analogous
#1B4995 #2A1B95 #671B95
triadic
#2A1B95 #952A1B #1B952A
tetradic
#2A1B95 #951B49 #86951B #1B9567
square
#2A1B95 #951B49 #86951B #1B9567
split-complementary
#2A1B95 #95671B #49951B
monochromatic
#0D082D #1B1261 #2A1B95 #3924C9 #5E4CDF

Accessibility & contrast

On white

12.43
#2A1B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2A1B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B95
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B95#FFFFFF#000000##FFFFFF
##2A1B951.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1b95;
/* rgb */ color: rgb(42, 27, 149);
/* oklch */ color: oklch(34.5% 0.184 276.3);
Tailwind
colors: {
  custom: {
    50: '#755bb5',
    500: '#2a1b95',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b95;
$custom-light: #755bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b95",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 247.377,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34521,
    "c": 0.1838,
    "h": 276.3
  },
  "luminance": 0.03446
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1B95

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

Preview Lab → · Contrast checker → · Palette generator →

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