#2A1165#2A1165

#2A1165 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.9% C 0.134 H 287.8°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#2A1165
RGBrgb(42, 17, 101)
HSLhsl(258, 71%, 23%)
HSVhsv(258, 83%, 40%)
CMYKcmyk(58.4%, 83.2%, 0%, 60.4%)
CIE-LABlab(14.58, 34.58, -44.42)
CIE-LCHlch(14.58, 56.29, 307.90°)
OKLaboklab(27.93% 0.041 -0.1278)
OKLCHoklch(27.93% 0.134 287.8)
XYZxyz(3.5036, 1.8325, 12.4785)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1165 #4C6511
analogous
#112265 #2A1165 #541165
triadic
#2A1165 #652A11 #11652A
tetradic
#2A1165 #651122 #4C6511 #116554
square
#2A1165 #651122 #4C6511 #116554
split-complementary
#2A1165 #655411 #226511
monochromatic
#0B041A #140831 #2A1165 #401A99 #5623CE

Accessibility & contrast

On white

15.37
#2A1165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2A1165 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1165
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1165#FFFFFF#000000##FFFFFF
##2A11651.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002767
Deuteranopia (green-blind)
#002363
Tritanopia (blue-blind)
#10293B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a1165;
/* rgb */ color: rgb(42, 17, 101);
/* oklch */ color: oklch(27.9% 0.134 287.8);
Tailwind
colors: {
  custom: {
    50: '#6c5392',
    500: '#2a1165',
    950: '#000000',
  },
}
SCSS
$custom: #2a1165;
$custom-light: #6c5392;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1165",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 101
  },
  "hsl": {
    "h": 257.857,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27931,
    "c": 0.13426,
    "h": 287.8
  },
  "luminance": 0.01833
}

Semantic roles & 50–950 ramp

primary
#2A1165
secondary
#7E9D35
accent
#EE3AB8
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #2A1165

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

Preview Lab → · Contrast checker → · Palette generator →

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