#2A114B#2A114B

#2A114B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.101 H 298.6°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#2A114B
RGBrgb(42, 17, 75)
HSLhsl(266, 63%, 18%)
HSVhsv(266, 77%, 29%)
CMYKcmyk(44%, 77.3%, 0%, 70.6%)
CIE-LABlab(11.96, 26.66, -31.13)
CIE-LCHlch(11.96, 40.98, 310.58°)
OKLaboklab(25.29% 0.0484 -0.0888)
OKLCHoklch(25.29% 0.101 298.6)
XYZxyz(2.4250, 1.4011, 6.7979)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A114B #324B11
analogous
#11154B #2A114B #47114B
triadic
#2A114B #4B2A11 #114B2A
tetradic
#2A114B #4B1115 #324B11 #114B47
square
#2A114B #4B1115 #324B11 #114B47
split-complementary
#2A114B #4B4711 #154B11
monochromatic
#0E0619 #0E0619 #2A114B #461C7D #6228AF

Accessibility & contrast

On white

16.40
#2A114B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2A114B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A114B
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A114B#FFFFFF#000000##FFFFFF
##2A114B1.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#001F4A
Tritanopia (blue-blind)
#221F2C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a114b;
/* rgb */ color: rgb(42, 17, 75);
/* oklch */ color: oklch(25.3% 0.101 298.6);
Tailwind
colors: {
  custom: {
    50: '#67517e',
    500: '#2a114b',
    950: '#000000',
  },
}
SCSS
$custom: #2a114b;
$custom-light: #67517e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a114b",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 75
  },
  "hsl": {
    "h": 265.862,
    "s": 63.043,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25287,
    "c": 0.10117,
    "h": 298.6
  },
  "luminance": 0.01401
}

Semantic roles & 50–950 ramp

primary
#2A114B
secondary
#618433
accent
#E6429F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A114B

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

Preview Lab → · Contrast checker → · Palette generator →

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