#2A175D#2A175D

#2A175D is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.117 H 288.9°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#2A175D
RGBrgb(42, 23, 93)
HSLhsl(256, 60%, 23%)
HSVhsv(256, 75%, 36%)
CMYKcmyk(54.8%, 75.3%, 0%, 63.5%)
CIE-LABlab(14.93, 28.75, -38.53)
CIE-LCHlch(14.93, 48.08, 306.73°)
OKLaboklab(27.92% 0.038 -0.1106)
OKLCHoklch(27.92% 0.117 288.9)
XYZxyz(3.2365, 1.8952, 10.5491)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A175D #4A5D17
analogous
#17275D #2A175D #4D175D
triadic
#2A175D #5D2A17 #175D2A
tetradic
#2A175D #5D1727 #4A5D17 #175D4D
square
#2A175D #5D1727 #4A5D17 #175D4D
split-complementary
#2A175D #5D4D17 #275D17
monochromatic
#0B0619 #140B2C #2A175D #40238E #562FBF

Accessibility & contrast

On white

15.23
#2A175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2A175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A175D
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A175D#FFFFFF#000000##FFFFFF
##2A175D1.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00245C
Tritanopia (blue-blind)
#172938
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a175d;
/* rgb */ color: rgb(42, 23, 93);
/* oklch */ color: oklch(27.9% 0.117 288.9);
Tailwind
colors: {
  custom: {
    50: '#6a568c',
    500: '#2a175d',
    950: '#000000',
  },
}
SCSS
$custom: #2a175d;
$custom-light: #6a568c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a175d",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 256.286,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27923,
    "c": 0.11697,
    "h": 288.9
  },
  "luminance": 0.01895
}

Semantic roles & 50–950 ramp

primary
#2A175D
secondary
#7C943C
accent
#E344B8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A175D

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

Preview Lab → · Contrast checker → · Palette generator →

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