#2A185B#2A185B

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

Color values

HEX#2A185B
RGBrgb(42, 24, 91)
HSLhsl(256, 58%, 23%)
HSVhsv(256, 74%, 36%)
CMYKcmyk(53.8%, 73.6%, 0%, 64.3%)
CIE-LABlab(14.96, 27.50, -37.15)
CIE-LCHlch(14.96, 46.22, 306.51°)
OKLaboklab(27.89% 0.0373 -0.1066)
OKLCHoklch(27.89% 0.113 289.3)
XYZxyz(3.1693, 1.9007, 10.0954)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A185B #495B18
analogous
#18285B #2A185B #4B185B
triadic
#2A185B #5B2A18 #185B2A
tetradic
#2A185B #5B1828 #495B18 #185B4B
square
#2A185B #5B1828 #495B18 #185B4B
split-complementary
#2A185B #5B4B18 #285B18
monochromatic
#0B0618 #140B2B #2A185B #40258B #5732BC

Accessibility & contrast

On white

15.22
#2A185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A185B
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A185B#FFFFFF#000000##FFFFFF
##2A185B1.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#192937
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a185b;
/* rgb */ color: rgb(42, 24, 91);
/* oklch */ color: oklch(27.9% 0.113 289.3);
Tailwind
colors: {
  custom: {
    50: '#69568a',
    500: '#2a185b',
    950: '#000000',
  },
}
SCSS
$custom: #2a185b;
$custom-light: #69568a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a185b",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 256.119,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27886,
    "c": 0.11292,
    "h": 289.3
  },
  "luminance": 0.01901
}

Semantic roles & 50–950 ramp

primary
#2A185B
secondary
#7B923D
accent
#E146B8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A185B

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

Preview Lab → · Contrast checker → · Palette generator →

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