#2A105A#2A105A

#2A105A is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.6% C 0.122 H 292.0°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#2A105A
RGBrgb(42, 16, 90)
HSLhsl(261, 70%, 21%)
HSVhsv(261, 82%, 35%)
CMYKcmyk(53.3%, 82.2%, 0%, 64.7%)
CIE-LABlab(13.24, 31.74, -39.29)
CIE-LCHlch(13.24, 50.51, 308.93°)
OKLaboklab(26.64% 0.0455 -0.1128)
OKLCHoklch(26.64% 0.122 292)
XYZxyz(2.9851, 1.6009, 9.8226)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A105A #405A10
analogous
#101B5A #2A105A #4F105A
triadic
#2A105A #5A2A10 #105A2A
tetradic
#2A105A #5A101B #405A10 #105A4F
square
#2A105A #5A101B #405A10 #105A4F
split-complementary
#2A105A #5A4F10 #1B5A10
monochromatic
#0C051A #120726 #2A105A #42198E #5A22C2

Accessibility & contrast

On white

15.91
#2A105A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A105A
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A105A#FFFFFF#000000##FFFFFF
##2A105A1.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235C
Deuteranopia (green-blind)
#002059
Tritanopia (blue-blind)
#1A2534
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a105a;
/* rgb */ color: rgb(42, 16, 90);
/* oklch */ color: oklch(26.6% 0.122 292.0);
Tailwind
colors: {
  custom: {
    50: '#6a5189',
    500: '#2a105a',
    950: '#000000',
  },
}
SCSS
$custom: #2a105a;
$custom-light: #6a5189;
$custom-dark: #000000;
JSON
{
  "hex": "#2a105a",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 90
  },
  "hsl": {
    "h": 261.081,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26636,
    "c": 0.12164,
    "h": 292
  },
  "luminance": 0.01601
}

Semantic roles & 50–950 ramp

primary
#2A105A
secondary
#719333
accent
#ED3BAE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A105A

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

Preview Lab → · Contrast checker → · Palette generator →

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