#2A1265#2A1265

#2A1265 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.133 H 287.6°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#2A1265
RGBrgb(42, 18, 101)
HSLhsl(257, 70%, 23%)
HSVhsv(257, 82%, 40%)
CMYKcmyk(58.4%, 82.2%, 0%, 60.4%)
CIE-LABlab(14.76, 34.07, -44.13)
CIE-LCHlch(14.76, 55.75, 307.67°)
OKLaboklab(28.05% 0.0403 -0.127)
OKLCHoklch(28.05% 0.133 287.6)
XYZxyz(3.5194, 1.8643, 12.4838)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1265 #4D6512
analogous
#122465 #2A1265 #531265
triadic
#2A1265 #652A12 #12652A
tetradic
#2A1265 #651224 #4D6512 #126553
square
#2A1265 #651224 #4D6512 #126553
split-complementary
#2A1265 #655312 #246512
monochromatic
#0B051A #140931 #2A1265 #401B99 #5525CD

Accessibility & contrast

On white

15.30
#2A1265 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1265
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1265#FFFFFF#000000##FFFFFF
##2A12651.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002767
Deuteranopia (green-blind)
#002363
Tritanopia (blue-blind)
#102A3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a1265;
/* rgb */ color: rgb(42, 18, 101);
/* oklch */ color: oklch(28.1% 0.133 287.6);
Tailwind
colors: {
  custom: {
    50: '#6c5392',
    500: '#2a1265',
    950: '#000000',
  },
}
SCSS
$custom: #2a1265;
$custom-light: #6c5392;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1265",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 101
  },
  "hsl": {
    "h": 257.349,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28053,
    "c": 0.13323,
    "h": 287.6
  },
  "luminance": 0.01864
}

Semantic roles & 50–950 ramp

primary
#2A1265
secondary
#7F9D36
accent
#ED3BB9
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A1265

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

Preview Lab → · Contrast checker → · Palette generator →

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