#2A105D#2A105D

#2A105D is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.0% C 0.125 H 290.8°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#2A105D
RGBrgb(42, 16, 93)
HSLhsl(260, 71%, 21%)
HSVhsv(260, 83%, 36%)
CMYKcmyk(54.8%, 82.8%, 0%, 63.5%)
CIE-LABlab(13.55, 32.65, -40.79)
CIE-LCHlch(13.55, 52.25, 308.67°)
OKLaboklab(26.95% 0.0445 -0.1172)
OKLCHoklch(26.95% 0.125 290.8)
XYZxyz(3.1154, 1.6530, 10.5087)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A105D #435D10
analogous
#101D5D #2A105D #51105D
triadic
#2A105D #5D2A10 #105D2A
tetradic
#2A105D #5D101D #435D10 #105D51
square
#2A105D #5D101D #435D10 #105D51
split-complementary
#2A105D #5D5110 #1D5D10
monochromatic
#0C041A #120729 #2A105D #421991 #5922C5

Accessibility & contrast

On white

15.78
#2A105D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A105D
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A105D#FFFFFF#000000##FFFFFF
##2A105D1.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#00215C
Tritanopia (blue-blind)
#182636
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a105d;
/* rgb */ color: rgb(42, 16, 93);
/* oklch */ color: oklch(27.0% 0.125 290.8);
Tailwind
colors: {
  custom: {
    50: '#6a528c',
    500: '#2a105d',
    950: '#000000',
  },
}
SCSS
$custom: #2a105d;
$custom-light: #6a528c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a105d",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 93
  },
  "hsl": {
    "h": 260.26,
    "s": 70.642,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26951,
    "c": 0.12538,
    "h": 290.8
  },
  "luminance": 0.01653
}

Semantic roles & 50–950 ramp

primary
#2A105D
secondary
#759633
accent
#ED3AB1
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A105D

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

Preview Lab → · Contrast checker → · Palette generator →

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