#2A113A#2A113A

#2A113A is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.8% C 0.079 H 309.8°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#2A113A
RGBrgb(42, 17, 58)
HSLhsl(277, 55%, 15%)
HSVhsv(277, 71%, 23%)
CMYKcmyk(27.6%, 70.7%, 0%, 77.3%)
CIE-LABlab(10.55, 21.72, -21.44)
CIE-LCHlch(10.55, 30.52, 315.37°)
OKLaboklab(23.82% 0.0504 -0.0604)
OKLCHoklch(23.82% 0.079 309.8)
XYZxyz(1.9189, 1.1987, 4.1324)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A113A #213A11
analogous
#15113A #2A113A #3A1136
triadic
#2A113A #3A2A11 #113A2A
tetradic
#2A113A #3A1511 #213A11 #11363A
square
#2A113A #3A1511 #213A11 #11363A
split-complementary
#2A113A #363A11 #113A15
monochromatic
#110718 #110718 #2A113A #4C1F69 #6F2D99

Accessibility & contrast

On white

16.94
#2A113A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A113A
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A113A#FFFFFF#000000##FFFFFF
##2A113A1.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021B3B
Deuteranopia (green-blind)
#0C1D39
Tritanopia (blue-blind)
#281923
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a113a;
/* rgb */ color: rgb(42, 17, 58);
/* oklch */ color: oklch(23.8% 0.079 309.8);
Tailwind
colors: {
  custom: {
    50: '#655070',
    500: '#2a113a',
    950: '#000000',
  },
}
SCSS
$custom: #2a113a;
$custom-light: #655070;
$custom-dark: #000000;
JSON
{
  "hex": "#2a113a",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 58
  },
  "hsl": {
    "h": 276.585,
    "s": 54.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23819,
    "c": 0.07865,
    "h": 309.8
  },
  "luminance": 0.01199
}

Semantic roles & 50–950 ramp

primary
#2A113A
secondary
#4C7333
accent
#DE4A84
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2A113A

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

Preview Lab → · Contrast checker → · Palette generator →

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