#2A1675#2A1675

#2A1675 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.149 H 282.5°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#2A1675
RGBrgb(42, 22, 117)
HSLhsl(253, 68%, 27%)
HSVhsv(253, 81%, 46%)
CMYKcmyk(64.1%, 81.2%, 0%, 54.1%)
CIE-LABlab(17.23, 37.01, -50.50)
CIE-LCHlch(17.23, 62.61, 306.24°)
OKLaboklab(30.3% 0.0323 -0.1456)
OKLCHoklch(30.3% 0.149 282.5)
XYZxyz(4.4516, 2.3501, 17.0452)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1675 #617516
analogous
#163175 #2A1675 #5A1675
triadic
#2A1675 #752A16 #16752A
tetradic
#2A1675 #751631 #617516 #16755A
square
#2A1675 #751631 #617516 #16755A
split-complementary
#2A1675 #755A16 #317516
monochromatic
#09051A #180C41 #2A1675 #3C20A9 #522ED8

Accessibility & contrast

On white

14.29
#2A1675 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2A1675 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1675
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1675#FFFFFF#000000##FFFFFF
##2A16751.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D78
Deuteranopia (green-blind)
#002773
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a1675;
/* rgb */ color: rgb(42, 22, 117);
/* oklch */ color: oklch(30.3% 0.149 282.5);
Tailwind
colors: {
  custom: {
    50: '#6f569e',
    500: '#2a1675',
    950: '#000000',
  },
}
SCSS
$custom: #2a1675;
$custom-light: #6f569e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1675",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 117
  },
  "hsl": {
    "h": 252.632,
    "s": 68.345,
    "l": 27.255
  },
  "oklch": {
    "l": 0.303,
    "c": 0.1492,
    "h": 282.5
  },
  "luminance": 0.0235
}

Semantic roles & 50–950 ramp

primary
#2A1675
secondary
#93AB3C
accent
#EB3DC6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1675

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

Preview Lab → · Contrast checker → · Palette generator →

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