#2A1155#2A1155

#2A1155 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.3% C 0.114 H 293.8°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#2A1155
RGBrgb(42, 17, 85)
HSLhsl(262, 67%, 20%)
HSVhsv(262, 80%, 33%)
CMYKcmyk(50.6%, 80%, 0%, 66.7%)
CIE-LABlab(12.92, 29.68, -36.43)
CIE-LCHlch(12.92, 47.00, 309.17°)
OKLaboklab(26.26% 0.046 -0.1044)
OKLCHoklch(26.26% 0.114 293.8)
XYZxyz(2.7945, 1.5489, 8.7443)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1155 #3C5511
analogous
#111A55 #2A1155 #4C1155
triadic
#2A1155 #552A11 #11552A
tetradic
#2A1155 #55111A #3C5511 #11554C
square
#2A1155 #55111A #3C5511 #11554C
split-complementary
#2A1155 #554C11 #1A5511
monochromatic
#0D051A #110722 #2A1155 #431B88 #5C25BB

Accessibility & contrast

On white

16.03
#2A1155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2A1155 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1155
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1155#FFFFFF#000000##FFFFFF
##2A11551.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002257
Deuteranopia (green-blind)
#002054
Tritanopia (blue-blind)
#1D2332
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a1155;
/* rgb */ color: rgb(42, 17, 85);
/* oklch */ color: oklch(26.3% 0.114 293.8);
Tailwind
colors: {
  custom: {
    50: '#695286',
    500: '#2a1155',
    950: '#000000',
  },
}
SCSS
$custom: #2a1155;
$custom-light: #695286;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1155",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 85
  },
  "hsl": {
    "h": 262.059,
    "s": 66.667,
    "l": 20
  },
  "oklch": {
    "l": 0.26256,
    "c": 0.11412,
    "h": 293.8
  },
  "luminance": 0.01549
}

Semantic roles & 50–950 ramp

primary
#2A1155
secondary
#6D8E34
accent
#EA3EAB
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A1155

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

Preview Lab → · Contrast checker → · Palette generator →

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