#2A114A#2A114A

#2A114A is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.100 H 299.1°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#2A114A
RGBrgb(42, 17, 74)
HSLhsl(266, 63%, 18%)
HSVhsv(266, 77%, 29%)
CMYKcmyk(43.2%, 77%, 0%, 71%)
CIE-LABlab(11.87, 26.36, -30.58)
CIE-LCHlch(11.87, 40.37, 310.76°)
OKLaboklab(25.19% 0.0486 -0.0872)
OKLCHoklch(25.19% 0.1 299.1)
XYZxyz(2.3910, 1.3875, 6.6191)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A114A #314A11
analogous
#11144A #2A114A #46114A
triadic
#2A114A #4A2A11 #114A2A
tetradic
#2A114A #4A1114 #314A11 #114A46
square
#2A114A #4A1114 #314A11 #114A46
split-complementary
#2A114A #4A4611 #144A11
monochromatic
#0E0619 #0E0619 #2A114A #461C7C #6228AE

Accessibility & contrast

On white

16.44
#2A114A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A114A
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A114A#FFFFFF#000000##FFFFFF
##2A114A1.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a114a;
/* rgb */ color: rgb(42, 17, 74);
/* oklch */ color: oklch(25.2% 0.100 299.1);
Tailwind
colors: {
  custom: {
    50: '#67517d',
    500: '#2a114a',
    950: '#000000',
  },
}
SCSS
$custom: #2a114a;
$custom-light: #67517d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a114a",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 74
  },
  "hsl": {
    "h": 266.316,
    "s": 62.637,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25194,
    "c": 0.09987,
    "h": 299.1
  },
  "luminance": 0.01388
}

Semantic roles & 50–950 ramp

primary
#2A114A
secondary
#608333
accent
#E6429E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A114A

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

Preview Lab → · Contrast checker → · Palette generator →

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