#2A105B#2A105B

#2A105B is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.7% C 0.123 H 291.6°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#2A105B
RGBrgb(42, 16, 91)
HSLhsl(261, 70%, 21%)
HSVhsv(261, 82%, 36%)
CMYKcmyk(53.8%, 82.4%, 0%, 64.3%)
CIE-LABlab(13.34, 32.04, -39.80)
CIE-LCHlch(13.34, 51.09, 308.84°)
OKLaboklab(26.74% 0.0452 -0.1143)
OKLCHoklch(26.74% 0.123 291.6)
XYZxyz(3.0279, 1.6180, 10.0483)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A105B #415B10
analogous
#101B5B #2A105B #4F105B
triadic
#2A105B #5B2A10 #105B2A
tetradic
#2A105B #5B101B #415B10 #105B4F
square
#2A105B #5B101B #415B10 #105B4F
split-complementary
#2A105B #5B4F10 #1B5B10
monochromatic
#0C051A #120727 #2A105B #42198F #5A22C3

Accessibility & contrast

On white

15.87
#2A105B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2A105B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A105B
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A105B#FFFFFF#000000##FFFFFF
##2A105B1.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235D
Deuteranopia (green-blind)
#00215A
Tritanopia (blue-blind)
#192535
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a105b;
/* rgb */ color: rgb(42, 16, 91);
/* oklch */ color: oklch(26.7% 0.123 291.6);
Tailwind
colors: {
  custom: {
    50: '#6a518a',
    500: '#2a105b',
    950: '#000000',
  },
}
SCSS
$custom: #2a105b;
$custom-light: #6a518a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a105b",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 91
  },
  "hsl": {
    "h": 260.8,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.2674,
    "c": 0.12289,
    "h": 291.6
  },
  "luminance": 0.01618
}

Semantic roles & 50–950 ramp

primary
#2A105B
secondary
#729433
accent
#ED3BAF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A105B

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

Preview Lab → · Contrast checker → · Palette generator →

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