#2A1153#2A1153

#2A1153 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.112 H 294.7°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#2A1153
RGBrgb(42, 17, 83)
HSLhsl(263, 66%, 20%)
HSVhsv(263, 80%, 33%)
CMYKcmyk(49.4%, 79.5%, 0%, 67.5%)
CIE-LABlab(12.72, 29.08, -35.39)
CIE-LCHlch(12.72, 45.80, 309.40°)
OKLaboklab(26.06% 0.0465 -0.1014)
OKLCHoklch(26.06% 0.112 294.7)
XYZxyz(2.7162, 1.5176, 8.3318)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1153 #3A5311
analogous
#111953 #2A1153 #4B1153
triadic
#2A1153 #532A11 #11532A
tetradic
#2A1153 #531119 #3A5311 #11534B
square
#2A1153 #531119 #3A5311 #11534B
split-complementary
#2A1153 #534B11 #195311
monochromatic
#0D0519 #100720 #2A1153 #441B86 #5D26B9

Accessibility & contrast

On white

16.11
#2A1153 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2A1153 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1153
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1153#FFFFFF#000000##FFFFFF
##2A11531.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002255
Deuteranopia (green-blind)
#002052
Tritanopia (blue-blind)
#1E2231
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a1153;
/* rgb */ color: rgb(42, 17, 83);
/* oklch */ color: oklch(26.1% 0.112 294.7);
Tailwind
colors: {
  custom: {
    50: '#685284',
    500: '#2a1153',
    950: '#000000',
  },
}
SCSS
$custom: #2a1153;
$custom-light: #685284;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1153",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 83
  },
  "hsl": {
    "h": 262.727,
    "s": 66,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26057,
    "c": 0.11156,
    "h": 294.7
  },
  "luminance": 0.01518
}

Semantic roles & 50–950 ramp

primary
#2A1153
secondary
#6B8C34
accent
#E93FA9
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A1153

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

Preview Lab → · Contrast checker → · Palette generator →

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