#2A1175#2A1175

#2A1175 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.154 H 283.3°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#2A1175
RGBrgb(42, 17, 117)
HSLhsl(255, 75%, 26%)
HSVhsv(255, 85%, 46%)
CMYKcmyk(64.1%, 85.5%, 0%, 54.1%)
CIE-LABlab(16.39, 39.44, -51.88)
CIE-LCHlch(16.39, 65.17, 307.24°)
OKLaboklab(29.72% 0.0354 -0.1496)
OKLCHoklch(29.72% 0.154 283.3)
XYZxyz(4.3652, 2.1772, 17.0164)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1175 #5C7511
analogous
#112A75 #2A1175 #5C1175
triadic
#2A1175 #752A11 #11752A
tetradic
#2A1175 #75112A #5C7511 #11755C
square
#2A1175 #75112A #5C7511 #11755C
split-complementary
#2A1175 #755C11 #2A7511
monochromatic
#0A041B #170940 #2A1175 #3D19AA #5122DF

Accessibility & contrast

On white

14.63
#2A1175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2A1175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1175
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1175#FFFFFF#000000##FFFFFF
##2A11751.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002573
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a1175;
/* rgb */ color: rgb(42, 17, 117);
/* oklch */ color: oklch(29.7% 0.154 283.3);
Tailwind
colors: {
  custom: {
    50: '#6f549e',
    500: '#2a1175',
    950: '#000000',
  },
}
SCSS
$custom: #2a1175;
$custom-light: #6f549e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1175",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 117
  },
  "hsl": {
    "h": 255,
    "s": 74.627,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29721,
    "c": 0.15373,
    "h": 283.3
  },
  "luminance": 0.02177
}

Semantic roles & 50–950 ramp

primary
#2A1175
secondary
#8EAC36
accent
#F137C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1175

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

Preview Lab → · Contrast checker → · Palette generator →

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