#2A115F#2A115F

#2A115F is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.127 H 289.8°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#2A115F
RGBrgb(42, 17, 95)
HSLhsl(259, 70%, 22%)
HSVhsv(259, 82%, 37%)
CMYKcmyk(55.8%, 82.1%, 0%, 62.7%)
CIE-LABlab(13.94, 32.75, -41.49)
CIE-LCHlch(13.94, 52.86, 308.28°)
OKLaboklab(27.29% 0.043 -0.1193)
OKLCHoklch(27.29% 0.127 289.8)
XYZxyz(3.2203, 1.7192, 10.9864)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A115F #465F11
analogous
#111F5F #2A115F #51115F
triadic
#2A115F #5F2A11 #115F2A
tetradic
#2A115F #5F111F #465F11 #115F51
square
#2A115F #5F111F #465F11 #115F51
split-complementary
#2A115F #5F5111 #1F5F11
monochromatic
#0B051A #13082B #2A115F #411A93 #5824C7

Accessibility & contrast

On white

15.63
#2A115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2A115F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A115F
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A115F#FFFFFF#000000##FFFFFF
##2A115F1.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#162737
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a115f;
/* rgb */ color: rgb(42, 17, 95);
/* oklch */ color: oklch(27.3% 0.127 289.8);
Tailwind
colors: {
  custom: {
    50: '#6b528d',
    500: '#2a115f',
    950: '#000000',
  },
}
SCSS
$custom: #2a115f;
$custom-light: #6b528d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a115f",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 259.231,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27287,
    "c": 0.12679,
    "h": 289.8
  },
  "luminance": 0.01719
}

Semantic roles & 50–950 ramp

primary
#2A115F
secondary
#789834
accent
#EC3BB4
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A115F

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

Preview Lab → · Contrast checker → · Palette generator →

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