#2A113B#2A113B

#2A113B is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.080 H 309.0°. Best body text is #FFFFFF at 16.91:1 contrast (WCAG AA passes).

Color values

HEX#2A113B
RGBrgb(42, 17, 59)
HSLhsl(276, 55%, 15%)
HSVhsv(276, 71%, 23%)
CMYKcmyk(28.8%, 71.2%, 0%, 76.9%)
CIE-LABlab(10.62, 22.00, -22.04)
CIE-LCHlch(10.62, 31.14, 314.95°)
OKLaboklab(23.9% 0.0504 -0.0621)
OKLCHoklch(23.9% 0.08 309)
XYZxyz(1.9446, 1.2089, 4.2677)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A113B #223B11
analogous
#15113B #2A113B #3B1137
triadic
#2A113B #3B2A11 #113B2A
tetradic
#2A113B #3B1511 #223B11 #11373B
square
#2A113B #3B1511 #223B11 #11373B
split-complementary
#2A113B #373B11 #113B15
monochromatic
#110718 #110718 #2A113B #4C1F6B #6E2C9A

Accessibility & contrast

On white

16.91
#2A113B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2A113B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A113B
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A113B#FFFFFF#000000##FFFFFF
##2A113B1.0016.911.2416.91
#FFFFFF16.911.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021C3C
Deuteranopia (green-blind)
#0B1D3A
Tritanopia (blue-blind)
#281924
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a113b;
/* rgb */ color: rgb(42, 17, 59);
/* oklch */ color: oklch(23.9% 0.080 309.0);
Tailwind
colors: {
  custom: {
    50: '#655071',
    500: '#2a113b',
    950: '#000000',
  },
}
SCSS
$custom: #2a113b;
$custom-light: #655071;
$custom-dark: #000000;
JSON
{
  "hex": "#2a113b",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 59
  },
  "hsl": {
    "h": 275.714,
    "s": 55.263,
    "l": 14.902
  },
  "oklch": {
    "l": 0.23898,
    "c": 0.07998,
    "h": 309
  },
  "luminance": 0.01209
}

Semantic roles & 50–950 ramp

primary
#2A113B
secondary
#4E7433
accent
#DF4986
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2A113B

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

Preview Lab → · Contrast checker → · Palette generator →

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