#2A1269#2A1269

#2A1269 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.5% C 0.138 H 286.4°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#2A1269
RGBrgb(42, 18, 105)
HSLhsl(257, 71%, 24%)
HSVhsv(257, 83%, 41%)
CMYKcmyk(60%, 82.9%, 0%, 58.8%)
CIE-LABlab(15.19, 35.31, -46.05)
CIE-LCHlch(15.19, 58.03, 307.48°)
OKLaboklab(28.49% 0.039 -0.1326)
OKLCHoklch(28.49% 0.138 286.4)
XYZxyz(3.7202, 1.9446, 13.5412)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1269 #516912
analogous
#122669 #2A1269 #561269
triadic
#2A1269 #692A12 #12692A
tetradic
#2A1269 #691226 #516912 #126956
square
#2A1269 #691226 #516912 #126956
split-complementary
#2A1269 #695612 #266912
monochromatic
#0A041A #150935 #2A1269 #3F1B9D #5424D1

Accessibility & contrast

On white

15.12
#2A1269 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2A1269 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1269
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1269#FFFFFF#000000##FFFFFF
##2A12691.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286B
Deuteranopia (green-blind)
#002467
Tritanopia (blue-blind)
#0B2B3D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a1269;
/* rgb */ color: rgb(42, 18, 105);
/* oklch */ color: oklch(28.5% 0.138 286.4);
Tailwind
colors: {
  custom: {
    50: '#6c5395',
    500: '#2a1269',
    950: '#000000',
  },
}
SCSS
$custom: #2a1269;
$custom-light: #6c5395;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1269",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 105
  },
  "hsl": {
    "h": 256.552,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28487,
    "c": 0.13821,
    "h": 286.4
  },
  "luminance": 0.01945
}

Semantic roles & 50–950 ramp

primary
#2A1269
secondary
#83A136
accent
#ED3ABC
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2A1269

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

Preview Lab → · Contrast checker → · Palette generator →

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