#2A1767#2A1767

#2A1767 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.130 H 285.9°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#2A1767
RGBrgb(42, 23, 103)
HSLhsl(254, 63%, 25%)
HSVhsv(254, 78%, 40%)
CMYKcmyk(59.2%, 77.7%, 0%, 59.6%)
CIE-LABlab(15.92, 31.99, -43.53)
CIE-LCHlch(15.92, 54.03, 306.31°)
OKLaboklab(28.93% 0.0356 -0.1253)
OKLCHoklch(28.93% 0.13 285.9)
XYZxyz(3.7087, 2.0841, 13.0362)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1767 #546717
analogous
#172C67 #2A1767 #521767
triadic
#2A1767 #672A17 #17672A
tetradic
#2A1767 #67172C #546717 #176752
square
#2A1767 #67172C #546717 #176752
split-complementary
#2A1767 #675217 #2C6717
monochromatic
#0A0619 #160C35 #2A1767 #3E2299 #532DCB

Accessibility & contrast

On white

14.82
#2A1767 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2A1767 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1767
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1767#FFFFFF#000000##FFFFFF
##2A17671.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002566
Tritanopia (blue-blind)
#0D2D3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a1767;
/* rgb */ color: rgb(42, 23, 103);
/* oklch */ color: oklch(28.9% 0.130 285.9);
Tailwind
colors: {
  custom: {
    50: '#6c5693',
    500: '#2a1767',
    950: '#000000',
  },
}
SCSS
$custom: #2a1767;
$custom-light: #6c5693;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1767",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 254.25,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28934,
    "c": 0.13026,
    "h": 285.9
  },
  "luminance": 0.02084
}

Semantic roles & 50–950 ramp

primary
#2A1767
secondary
#869D3D
accent
#E741BF
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A1767

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

Preview Lab → · Contrast checker → · Palette generator →

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