#2A114C#2A114C

#2A114C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.102 H 298.0°. Best body text is #FFFFFF at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#2A114C
RGBrgb(42, 17, 76)
HSLhsl(265, 63%, 18%)
HSVhsv(265, 78%, 30%)
CMYKcmyk(44.7%, 77.6%, 0%, 70.2%)
CIE-LABlab(12.06, 26.96, -31.67)
CIE-LCHlch(12.06, 41.59, 310.40°)
OKLaboklab(25.38% 0.0482 -0.0904)
OKLCHoklch(25.38% 0.102 298)
XYZxyz(2.4595, 1.4149, 6.9796)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A114C #334C11
analogous
#11154C #2A114C #47114C
triadic
#2A114C #4C2A11 #114C2A
tetradic
#2A114C #4C1115 #334C11 #114C47
square
#2A114C #4C1115 #334C11 #114C47
split-complementary
#2A114C #4C4711 #154C11
monochromatic
#0E0619 #0E061A #2A114C #461C7E #6127B0

Accessibility & contrast

On white

16.37
#2A114C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A114C
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A114C#FFFFFF#000000##FFFFFF
##2A114C1.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#221F2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a114c;
/* rgb */ color: rgb(42, 17, 76);
/* oklch */ color: oklch(25.4% 0.102 298.0);
Tailwind
colors: {
  custom: {
    50: '#67517f',
    500: '#2a114c',
    950: '#000000',
  },
}
SCSS
$custom: #2a114c;
$custom-light: #67517f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a114c",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 76
  },
  "hsl": {
    "h": 265.424,
    "s": 63.441,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25381,
    "c": 0.10249,
    "h": 298
  },
  "luminance": 0.01415
}

Semantic roles & 50–950 ramp

primary
#2A114C
secondary
#638533
accent
#E641A0
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A114C

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

Preview Lab → · Contrast checker → · Palette generator →

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