#2A105C#2A105C

#2A105C is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.8% C 0.124 H 291.2°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#2A105C
RGBrgb(42, 16, 92)
HSLhsl(261, 70%, 21%)
HSVhsv(261, 83%, 36%)
CMYKcmyk(54.3%, 82.6%, 0%, 63.9%)
CIE-LABlab(13.44, 32.34, -40.30)
CIE-LCHlch(13.44, 51.67, 308.75°)
OKLaboklab(26.85% 0.0448 -0.1158)
OKLCHoklch(26.85% 0.124 291.2)
XYZxyz(3.0714, 1.6354, 10.2770)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A105C #425C10
analogous
#101C5C #2A105C #50105C
triadic
#2A105C #5C2A10 #105C2A
tetradic
#2A105C #5C101C #425C10 #105C50
square
#2A105C #5C101C #425C10 #105C50
split-complementary
#2A105C #5C5010 #1C5C10
monochromatic
#0C051A #120728 #2A105C #421990 #5A22C4

Accessibility & contrast

On white

15.82
#2A105C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2A105C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A105C
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A105C#FFFFFF#000000##FFFFFF
##2A105C1.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00215B
Tritanopia (blue-blind)
#192535
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a105c;
/* rgb */ color: rgb(42, 16, 92);
/* oklch */ color: oklch(26.8% 0.124 291.2);
Tailwind
colors: {
  custom: {
    50: '#6a528b',
    500: '#2a105c',
    950: '#000000',
  },
}
SCSS
$custom: #2a105c;
$custom-light: #6a528b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a105c",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 92
  },
  "hsl": {
    "h": 260.526,
    "s": 70.37,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26845,
    "c": 0.12414,
    "h": 291.2
  },
  "luminance": 0.01636
}

Semantic roles & 50–950 ramp

primary
#2A105C
secondary
#739533
accent
#ED3BB0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A105C

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

Preview Lab → · Contrast checker → · Palette generator →

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