#2A1267#2A1267

#2A1267 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.136 H 287.0°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#2A1267
RGBrgb(42, 18, 103)
HSLhsl(257, 70%, 24%)
HSVhsv(257, 83%, 40%)
CMYKcmyk(59.2%, 82.5%, 0%, 59.6%)
CIE-LABlab(14.97, 34.69, -45.09)
CIE-LCHlch(14.97, 56.89, 307.57°)
OKLaboklab(28.27% 0.0396 -0.1298)
OKLCHoklch(28.27% 0.136 287)
XYZxyz(3.6186, 1.9039, 13.0062)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1267 #4F6712
analogous
#122467 #2A1267 #541267
triadic
#2A1267 #672A12 #12672A
tetradic
#2A1267 #671224 #4F6712 #126754
square
#2A1267 #671224 #4F6712 #126754
split-complementary
#2A1267 #675412 #246712
monochromatic
#0B051A #150933 #2A1267 #3F1B9B #5424CF

Accessibility & contrast

On white

15.21
#2A1267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2A1267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1267
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1267#FFFFFF#000000##FFFFFF
##2A12671.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002869
Deuteranopia (green-blind)
#002365
Tritanopia (blue-blind)
#0E2B3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a1267;
/* rgb */ color: rgb(42, 18, 103);
/* oklch */ color: oklch(28.3% 0.136 287.0);
Tailwind
colors: {
  custom: {
    50: '#6c5393',
    500: '#2a1267',
    950: '#000000',
  },
}
SCSS
$custom: #2a1267;
$custom-light: #6c5393;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1267",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 256.941,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28269,
    "c": 0.13572,
    "h": 287
  },
  "luminance": 0.01904
}

Semantic roles & 50–950 ramp

primary
#2A1267
secondary
#819F36
accent
#ED3BBB
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A1267

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

Preview Lab → · Contrast checker → · Palette generator →

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