#2A175C#2A175C

#2A175C is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.116 H 289.3°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#2A175C
RGBrgb(42, 23, 92)
HSLhsl(257, 60%, 23%)
HSVhsv(257, 75%, 36%)
CMYKcmyk(54.3%, 75%, 0%, 63.9%)
CIE-LABlab(14.83, 28.43, -38.02)
CIE-LCHlch(14.83, 47.48, 306.79°)
OKLaboklab(27.83% 0.0382 -0.1091)
OKLCHoklch(27.83% 0.116 289.3)
XYZxyz(3.1924, 1.8776, 10.3173)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A175C #495C17
analogous
#17265C #2A175C #4D175C
triadic
#2A175C #5C2A17 #175C2A
tetradic
#2A175C #5C1726 #495C17 #175C4D
square
#2A175C #5C1726 #495C17 #175C4D
split-complementary
#2A175C #5C4D17 #265C17
monochromatic
#0B0618 #140B2B #2A175C #40238D #572FBE

Accessibility & contrast

On white

15.27
#2A175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A175C
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A175C#FFFFFF#000000##FFFFFF
##2A175C1.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#00245B
Tritanopia (blue-blind)
#182937
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a175c;
/* rgb */ color: rgb(42, 23, 92);
/* oklch */ color: oklch(27.8% 0.116 289.3);
Tailwind
colors: {
  custom: {
    50: '#69568b',
    500: '#2a175c',
    950: '#000000',
  },
}
SCSS
$custom: #2a175c;
$custom-light: #69568b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a175c",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 256.522,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27825,
    "c": 0.11563,
    "h": 289.3
  },
  "luminance": 0.01878
}

Semantic roles & 50–950 ramp

primary
#2A175C
secondary
#7B933C
accent
#E345B8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A175C

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

Preview Lab → · Contrast checker → · Palette generator →

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