#2A1274#2A1274

#2A1274 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.152 H 283.4°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#2A1274
RGBrgb(42, 18, 116)
HSLhsl(255, 73%, 26%)
HSVhsv(255, 84%, 45%)
CMYKcmyk(63.8%, 84.5%, 0%, 54.5%)
CIE-LABlab(16.43, 38.68, -51.17)
CIE-LCHlch(16.43, 64.14, 307.09°)
OKLaboklab(29.72% 0.0351 -0.1475)
OKLCHoklch(29.72% 0.152 283.4)
XYZxyz(4.3226, 2.1855, 16.7137)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1274 #5C7412
analogous
#122B74 #2A1274 #5B1274
triadic
#2A1274 #742A12 #12742A
tetradic
#2A1274 #74122B #5C7412 #12745B
square
#2A1274 #74122B #5C7412 #12745B
split-complementary
#2A1274 #745B12 #2B7412
monochromatic
#0A041A #170A3F #2A1274 #3D1AA9 #5123DD

Accessibility & contrast

On white

14.61
#2A1274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1274
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1274#FFFFFF#000000##FFFFFF
##2A12741.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1274;
/* rgb */ color: rgb(42, 18, 116);
/* oklch */ color: oklch(29.7% 0.152 283.4);
Tailwind
colors: {
  custom: {
    50: '#6f549d',
    500: '#2a1274',
    950: '#000000',
  },
}
SCSS
$custom: #2a1274;
$custom-light: #6f549d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1274",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 254.694,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29715,
    "c": 0.15167,
    "h": 283.4
  },
  "luminance": 0.02186
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1274

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

Preview Lab → · Contrast checker → · Palette generator →

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