#2A1275#2A1275

#2A1275 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.153 H 283.2°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#2A1275
RGBrgb(42, 18, 117)
HSLhsl(255, 73%, 26%)
HSVhsv(255, 85%, 46%)
CMYKcmyk(64.1%, 84.6%, 0%, 54.1%)
CIE-LABlab(16.55, 38.98, -51.62)
CIE-LCHlch(16.55, 64.69, 307.06°)
OKLaboklab(29.83% 0.0348 -0.1489)
OKLCHoklch(29.83% 0.153 283.2)
XYZxyz(4.3810, 2.2089, 17.0217)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1275 #5D7512
analogous
#122C75 #2A1275 #5C1275
triadic
#2A1275 #752A12 #12752A
tetradic
#2A1275 #75122C #5D7512 #12755C
square
#2A1275 #75122C #5D7512 #12755C
split-complementary
#2A1275 #755C12 #2C7512
monochromatic
#0A041B #170A40 #2A1275 #3D1AAA #5124DD

Accessibility & contrast

On white

14.57
#2A1275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2A1275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1275
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1275#FFFFFF#000000##FFFFFF
##2A12751.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002673
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a1275;
/* rgb */ color: rgb(42, 18, 117);
/* oklch */ color: oklch(29.8% 0.153 283.2);
Tailwind
colors: {
  custom: {
    50: '#6f549e',
    500: '#2a1275',
    950: '#000000',
  },
}
SCSS
$custom: #2a1275;
$custom-light: #6f549e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1275",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 254.545,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29829,
    "c": 0.15288,
    "h": 283.2
  },
  "luminance": 0.02209
}

Semantic roles & 50–950 ramp

primary
#2A1275
secondary
#8FAC37
accent
#F038C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1275

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

Preview Lab → · Contrast checker → · Palette generator →

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