#2A1243#2A1243

#2A1243 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.089 H 302.9°. Best body text is #FFFFFF at 16.59:1 contrast (WCAG AA passes).

Color values

HEX#2A1243
RGBrgb(42, 18, 67)
HSLhsl(269, 58%, 17%)
HSVhsv(269, 73%, 26%)
CMYKcmyk(37.3%, 73.1%, 0%, 73.7%)
CIE-LABlab(11.48, 23.68, -26.32)
CIE-LCHlch(11.48, 35.41, 311.97°)
OKLaboklab(24.72% 0.0483 -0.0747)
OKLCHoklch(24.72% 0.089 302.9)
XYZxyz(2.1840, 1.3301, 5.4508)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1243 #2B4312
analogous
#121343 #2A1243 #431243
triadic
#2A1243 #432A12 #12432A
tetradic
#2A1243 #431213 #2B4312 #124343
square
#2A1243 #431213 #2B4312 #124343
split-complementary
#2A1243 #434312 #134312
monochromatic
#0F0618 #0F0618 #2A1243 #481F73 #662CA3

Accessibility & contrast

On white

16.59
#2A1243 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2A1243 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1243
16.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1243#FFFFFF#000000##FFFFFF
##2A12431.0016.591.2716.59
#FFFFFF16.591.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E45
Deuteranopia (green-blind)
#031E42
Tritanopia (blue-blind)
#251D28
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a1243;
/* rgb */ color: rgb(42, 18, 67);
/* oklch */ color: oklch(24.7% 0.089 302.9);
Tailwind
colors: {
  custom: {
    50: '#665177',
    500: '#2a1243',
    950: '#000000',
  },
}
SCSS
$custom: #2a1243;
$custom-light: #665177;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1243",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 67
  },
  "hsl": {
    "h": 269.388,
    "s": 57.647,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24724,
    "c": 0.08902,
    "h": 302.9
  },
  "luminance": 0.0133
}

Semantic roles & 50–950 ramp

primary
#2A1243
secondary
#597C35
accent
#E14795
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1243

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

Preview Lab → · Contrast checker → · Palette generator →

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