#2A175B#2A175B

#2A175B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.114 H 289.6°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#2A175B
RGBrgb(42, 23, 91)
HSLhsl(257, 60%, 22%)
HSVhsv(257, 75%, 36%)
CMYKcmyk(53.8%, 74.7%, 0%, 64.3%)
CIE-LABlab(14.74, 28.11, -37.51)
CIE-LCHlch(14.74, 46.87, 306.85°)
OKLaboklab(27.73% 0.0384 -0.1076)
OKLCHoklch(27.73% 0.114 289.6)
XYZxyz(3.1490, 1.8602, 10.0886)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A175B #485B17
analogous
#17265B #2A175B #4C175B
triadic
#2A175B #5B2A17 #175B2A
tetradic
#2A175B #5B1726 #485B17 #175B4C
square
#2A175B #5B1726 #485B17 #175B4C
split-complementary
#2A175B #5B4C17 #265B17
monochromatic
#0B0618 #130B2A #2A175B #41238C #5730BD

Accessibility & contrast

On white

15.31
#2A175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2A175B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A175B
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A175B#FFFFFF#000000##FFFFFF
##2A175B1.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00235A
Tritanopia (blue-blind)
#192837
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a175b;
/* rgb */ color: rgb(42, 23, 91);
/* oklch */ color: oklch(27.7% 0.114 289.6);
Tailwind
colors: {
  custom: {
    50: '#69568a',
    500: '#2a175b',
    950: '#000000',
  },
}
SCSS
$custom: #2a175b;
$custom-light: #69568a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a175b",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 256.765,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27727,
    "c": 0.11427,
    "h": 289.6
  },
  "luminance": 0.0186
}

Semantic roles & 50–950 ramp

primary
#2A175B
secondary
#7A923C
accent
#E345B7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A175B

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

Preview Lab → · Contrast checker → · Palette generator →

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