#2A1462#2A1462

#2A1462 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.0% C 0.127 H 288.1°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#2A1462
RGBrgb(42, 20, 98)
HSLhsl(257, 66%, 23%)
HSVhsv(257, 80%, 38%)
CMYKcmyk(57.1%, 79.6%, 0%, 61.6%)
CIE-LABlab(14.81, 32.08, -42.05)
CIE-LCHlch(14.81, 52.89, 307.34°)
OKLaboklab(27.99% 0.0396 -0.1209)
OKLCHoklch(27.99% 0.127 288.1)
XYZxyz(3.4090, 1.8742, 11.7350)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1462 #4C6214
analogous
#142562 #2A1462 #511462
triadic
#2A1462 #622A14 #14622A
tetradic
#2A1462 #621425 #4C6214 #146251
square
#2A1462 #621425 #4C6214 #146251
split-complementary
#2A1462 #625114 #256214
monochromatic
#0B0519 #140A2F #2A1462 #401E95 #5629C8

Accessibility & contrast

On white

15.27
#2A1462 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2A1462 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1462
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1462#FFFFFF#000000##FFFFFF
##2A14621.0015.271.3715.27
#FFFFFF15.271.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002764
Deuteranopia (green-blind)
#002361
Tritanopia (blue-blind)
#132A3A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a1462;
/* rgb */ color: rgb(42, 20, 98);
/* oklch */ color: oklch(28.0% 0.127 288.1);
Tailwind
colors: {
  custom: {
    50: '#6b548f',
    500: '#2a1462',
    950: '#000000',
  },
}
SCSS
$custom: #2a1462;
$custom-light: #6b548f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1462",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 98
  },
  "hsl": {
    "h": 256.923,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27995,
    "c": 0.12724,
    "h": 288.1
  },
  "luminance": 0.01874
}

Semantic roles & 50–950 ramp

primary
#2A1462
secondary
#7E9938
accent
#E93FB9
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A1462

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

Preview Lab → · Contrast checker → · Palette generator →

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