#2A1750#2A1750

#2A1750 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.099 H 294.0°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#2A1750
RGBrgb(42, 23, 80)
HSLhsl(260, 55%, 20%)
HSVhsv(260, 71%, 31%)
CMYKcmyk(47.5%, 71.2%, 0%, 68.6%)
CIE-LABlab(13.73, 24.57, -31.69)
CIE-LCHlch(13.73, 40.10, 307.78°)
OKLaboklab(26.7% 0.0402 -0.0905)
OKLCHoklch(26.7% 0.099 294)
XYZxyz(2.7088, 1.6841, 7.7702)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1750 #3D5017
analogous
#172050 #2A1750 #461750
triadic
#2A1750 #502A17 #17502A
tetradic
#2A1750 #501720 #3D5017 #175046
square
#2A1750 #501720 #3D5017 #175046
split-complementary
#2A1750 #504617 #205017
monochromatic
#0C0718 #110920 #2A1750 #432580 #5C32AF

Accessibility & contrast

On white

15.71
#2A1750 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2A1750 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1750
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1750#FFFFFF#000000##FFFFFF
##2A17501.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#00224F
Tritanopia (blue-blind)
#202431
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a1750;
/* rgb */ color: rgb(42, 23, 80);
/* oklch */ color: oklch(26.7% 0.099 294.0);
Tailwind
colors: {
  custom: {
    50: '#675582',
    500: '#2a1750',
    950: '#000000',
  },
}
SCSS
$custom: #2a1750;
$custom-light: #675582;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1750",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 80
  },
  "hsl": {
    "h": 260,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26695,
    "c": 0.09908,
    "h": 294
  },
  "luminance": 0.01684
}

Semantic roles & 50–950 ramp

primary
#2A1750
secondary
#6E873C
accent
#DF49AD
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2A1750

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

Preview Lab → · Contrast checker → · Palette generator →

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