#2A1B60#2A1B60

#2A1B60 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.116 H 286.7°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#2A1B60
RGBrgb(42, 27, 96)
HSLhsl(253, 56%, 24%)
HSVhsv(253, 72%, 38%)
CMYKcmyk(56.3%, 71.9%, 0%, 62.4%)
CIE-LABlab(16.11, 27.28, -38.61)
CIE-LCHlch(16.11, 47.27, 305.24°)
OKLaboklab(28.86% 0.0333 -0.1109)
OKLCHoklch(28.86% 0.116 286.7)
XYZxyz(3.4575, 2.1205, 11.2912)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B60 #51601B
analogous
#1B2F60 #2A1B60 #4D1B60
triadic
#2A1B60 #602A1B #1B602A
tetradic
#2A1B60 #601B2F #51601B #1B604D
square
#2A1B60 #601B2F #51601B #1B604D
split-complementary
#2A1B60 #604D1B #2F601B
monochromatic
#0A0718 #150E30 #2A1B60 #3F2890 #5436C0

Accessibility & contrast

On white

14.75
#2A1B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2A1B60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B60
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B60#FFFFFF#000000##FFFFFF
##2A1B601.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A62
Deuteranopia (green-blind)
#00265F
Tritanopia (blue-blind)
#152C3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a1b60;
/* rgb */ color: rgb(42, 27, 96);
/* oklch */ color: oklch(28.9% 0.116 286.7);
Tailwind
colors: {
  custom: {
    50: '#6a588e',
    500: '#2a1b60',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b60;
$custom-light: #6a588e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b60",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 96
  },
  "hsl": {
    "h": 253.043,
    "s": 56.098,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28856,
    "c": 0.11574,
    "h": 286.7
  },
  "luminance": 0.02121
}

Semantic roles & 50–950 ramp

primary
#2A1B60
secondary
#839641
accent
#DF48BF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A1B60

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

Preview Lab → · Contrast checker → · Palette generator →

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