#2A1150#2A1150

#2A1150 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.108 H 296.0°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#2A1150
RGBrgb(42, 17, 80)
HSLhsl(264, 65%, 19%)
HSVhsv(264, 79%, 31%)
CMYKcmyk(47.5%, 78.8%, 0%, 68.6%)
CIE-LABlab(12.43, 28.16, -33.81)
CIE-LCHlch(12.43, 44.01, 309.79°)
OKLaboklab(25.76% 0.0473 -0.0967)
OKLCHoklch(25.76% 0.108 296)
XYZxyz(2.6029, 1.4723, 7.7349)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1150 #375011
analogous
#111850 #2A1150 #4A1150
triadic
#2A1150 #502A11 #11502A
tetradic
#2A1150 #501118 #375011 #11504A
square
#2A1150 #501118 #375011 #11504A
split-complementary
#2A1150 #504A11 #185011
monochromatic
#0D0519 #10061E #2A1150 #451C82 #5F26B5

Accessibility & contrast

On white

16.22
#2A1150 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2A1150 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1150
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1150#FFFFFF#000000##FFFFFF
##2A11501.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002152
Deuteranopia (green-blind)
#001F4F
Tritanopia (blue-blind)
#20212F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a1150;
/* rgb */ color: rgb(42, 17, 80);
/* oklch */ color: oklch(25.8% 0.108 296.0);
Tailwind
colors: {
  custom: {
    50: '#685182',
    500: '#2a1150',
    950: '#000000',
  },
}
SCSS
$custom: #2a1150;
$custom-light: #685182;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1150",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 80
  },
  "hsl": {
    "h": 263.81,
    "s": 64.948,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25763,
    "c": 0.10768,
    "h": 296
  },
  "luminance": 0.01472
}

Semantic roles & 50–950 ramp

primary
#2A1150
secondary
#678933
accent
#E840A5
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A1150

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

Preview Lab → · Contrast checker → · Palette generator →

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