#2A1250#2A1250

#2A1250 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.106 H 295.7°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#2A1250
RGBrgb(42, 18, 80)
HSLhsl(263, 63%, 19%)
HSVhsv(263, 78%, 31%)
CMYKcmyk(47.5%, 77.5%, 0%, 68.6%)
CIE-LABlab(12.63, 27.59, -33.48)
CIE-LCHlch(12.63, 43.39, 309.49°)
OKLaboklab(25.91% 0.0462 -0.0958)
OKLCHoklch(25.91% 0.106 295.7)
XYZxyz(2.6187, 1.5040, 7.7402)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1250 #385012
analogous
#121950 #2A1250 #491250
triadic
#2A1250 #502A12 #12502A
tetradic
#2A1250 #501219 #385012 #125049
square
#2A1250 #501219 #385012 #125049
split-complementary
#2A1250 #504912 #195012
monochromatic
#0D0619 #10071E #2A1250 #441D82 #5E28B4

Accessibility & contrast

On white

16.14
#2A1250 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2A1250 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1250
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1250#FFFFFF#000000##FFFFFF
##2A12501.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002152
Deuteranopia (green-blind)
#00204F
Tritanopia (blue-blind)
#20222F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a1250;
/* rgb */ color: rgb(42, 18, 80);
/* oklch */ color: oklch(25.9% 0.106 295.7);
Tailwind
colors: {
  custom: {
    50: '#685282',
    500: '#2a1250',
    950: '#000000',
  },
}
SCSS
$custom: #2a1250;
$custom-light: #685282;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1250",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 80
  },
  "hsl": {
    "h": 263.226,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25907,
    "c": 0.10633,
    "h": 295.7
  },
  "luminance": 0.01504
}

Semantic roles & 50–950 ramp

primary
#2A1250
secondary
#688935
accent
#E641A7
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A1250

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

Preview Lab → · Contrast checker → · Palette generator →

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