#2A135C#2A135C

#2A135C is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.2% C 0.121 H 290.4°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#2A135C
RGBrgb(42, 19, 92)
HSLhsl(259, 66%, 22%)
HSVhsv(259, 79%, 36%)
CMYKcmyk(54.3%, 79.3%, 0%, 63.9%)
CIE-LABlab(14.00, 30.74, -39.38)
CIE-LCHlch(14.00, 49.96, 307.98°)
OKLaboklab(27.24% 0.0421 -0.1131)
OKLCHoklch(27.24% 0.121 290.4)
XYZxyz(3.1189, 1.7306, 10.2928)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A135C #455C13
analogous
#13215C #2A135C #4F135C
triadic
#2A135C #5C2A13 #135C2A
tetradic
#2A135C #5C1321 #455C13 #135C4F
square
#2A135C #5C1321 #455C13 #135C4F
split-complementary
#2A135C #5C4F13 #215C13
monochromatic
#0C0519 #130929 #2A135C #411D8F #5828C1

Accessibility & contrast

On white

15.60
#2A135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2A135C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A135C
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A135C#FFFFFF#000000##FFFFFF
##2A135C1.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00225B
Tritanopia (blue-blind)
#192736
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a135c;
/* rgb */ color: rgb(42, 19, 92);
/* oklch */ color: oklch(27.2% 0.121 290.4);
Tailwind
colors: {
  custom: {
    50: '#6a538b',
    500: '#2a135c',
    950: '#000000',
  },
}
SCSS
$custom: #2a135c;
$custom-light: #6a538b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a135c",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 258.904,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27239,
    "c": 0.12069,
    "h": 290.4
  },
  "luminance": 0.01731
}

Semantic roles & 50–950 ramp

primary
#2A135C
secondary
#779437
accent
#E93FB3
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A135C

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

Preview Lab → · Contrast checker → · Palette generator →

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