#2A105F#2A105F

#2A105F is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.2% C 0.128 H 290.1°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#2A105F
RGBrgb(42, 16, 95)
HSLhsl(260, 71%, 22%)
HSVhsv(260, 83%, 37%)
CMYKcmyk(55.8%, 83.2%, 0%, 62.7%)
CIE-LABlab(13.76, 33.25, -41.78)
CIE-LCHlch(13.76, 53.40, 308.52°)
OKLaboklab(27.16% 0.0439 -0.1201)
OKLCHoklch(27.16% 0.128 290.1)
XYZxyz(3.2051, 1.6889, 10.9814)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A105F #455F10
analogous
#101E5F #2A105F #52105F
triadic
#2A105F #5F2A10 #105F2A
tetradic
#2A105F #5F101E #455F10 #105F52
square
#2A105F #5F101E #455F10 #105F52
split-complementary
#2A105F #5F5210 #1E5F10
monochromatic
#0C041A #13072B #2A105F #411993 #5822C8

Accessibility & contrast

On white

15.70
#2A105F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2A105F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A105F
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A105F#FFFFFF#000000##FFFFFF
##2A105F1.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00215E
Tritanopia (blue-blind)
#162737
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a105f;
/* rgb */ color: rgb(42, 16, 95);
/* oklch */ color: oklch(27.2% 0.128 290.1);
Tailwind
colors: {
  custom: {
    50: '#6b528d',
    500: '#2a105f',
    950: '#000000',
  },
}
SCSS
$custom: #2a105f;
$custom-light: #6b528d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a105f",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 95
  },
  "hsl": {
    "h": 259.747,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27163,
    "c": 0.12786,
    "h": 290.1
  },
  "luminance": 0.01689
}

Semantic roles & 50–950 ramp

primary
#2A105F
secondary
#779833
accent
#EE3AB3
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A105F

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

Preview Lab → · Contrast checker → · Palette generator →

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