#2A114D#2A114D

#2A114D is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.104 H 297.5°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#2A114D
RGBrgb(42, 17, 77)
HSLhsl(265, 64%, 18%)
HSVhsv(265, 78%, 30%)
CMYKcmyk(45.5%, 77.9%, 0%, 69.8%)
CIE-LABlab(12.15, 27.26, -32.21)
CIE-LCHlch(12.15, 42.20, 310.24°)
OKLaboklab(25.48% 0.048 -0.092)
OKLCHoklch(25.48% 0.104 297.5)
XYZxyz(2.4945, 1.4289, 7.1641)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A114D #344D11
analogous
#11164D #2A114D #48114D
triadic
#2A114D #4D2A11 #114D2A
tetradic
#2A114D #4D1116 #344D11 #114D48
square
#2A114D #4D1116 #344D11 #114D48
split-complementary
#2A114D #4D4811 #164D11
monochromatic
#0E0619 #0F061B #2A114D #451C7F #6127B1

Accessibility & contrast

On white

16.33
#2A114D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2A114D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A114D
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A114D#FFFFFF#000000##FFFFFF
##2A114D1.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#001F4C
Tritanopia (blue-blind)
#21202D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a114d;
/* rgb */ color: rgb(42, 17, 77);
/* oklch */ color: oklch(25.5% 0.104 297.5);
Tailwind
colors: {
  custom: {
    50: '#68517f',
    500: '#2a114d',
    950: '#000000',
  },
}
SCSS
$custom: #2a114d;
$custom-light: #68517f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a114d",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 77
  },
  "hsl": {
    "h": 265,
    "s": 63.83,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25475,
    "c": 0.10379,
    "h": 297.5
  },
  "luminance": 0.01429
}

Semantic roles & 50–950 ramp

primary
#2A114D
secondary
#648633
accent
#E741A2
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A114D

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

Preview Lab → · Contrast checker → · Palette generator →

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