#2A1762#2A1762

#2A1762 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.4% C 0.124 H 287.3°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#2A1762
RGBrgb(42, 23, 98)
HSLhsl(255, 62%, 24%)
HSVhsv(255, 77%, 38%)
CMYKcmyk(57.1%, 76.5%, 0%, 61.6%)
CIE-LABlab(15.42, 30.37, -41.06)
CIE-LCHlch(15.42, 51.07, 306.49°)
OKLaboklab(28.42% 0.0368 -0.118)
OKLCHoklch(28.42% 0.124 287.3)
XYZxyz(3.4652, 1.9867, 11.7538)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1762 #4F6217
analogous
#172962 #2A1762 #4F1762
triadic
#2A1762 #622A17 #17622A
tetradic
#2A1762 #621729 #4F6217 #17624F
square
#2A1762 #621729 #4F6217 #17624F
split-complementary
#2A1762 #624F17 #296217
monochromatic
#0B0619 #150B30 #2A1762 #3F2394 #542EC5

Accessibility & contrast

On white

15.03
#2A1762 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2A1762 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1762
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1762#FFFFFF#000000##FFFFFF
##2A17621.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002864
Deuteranopia (green-blind)
#002461
Tritanopia (blue-blind)
#132B3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a1762;
/* rgb */ color: rgb(42, 23, 98);
/* oklch */ color: oklch(28.4% 0.124 287.3);
Tailwind
colors: {
  custom: {
    50: '#6b568f',
    500: '#2a1762',
    950: '#000000',
  },
}
SCSS
$custom: #2a1762;
$custom-light: #6b568f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1762",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 98
  },
  "hsl": {
    "h": 255.2,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28422,
    "c": 0.12366,
    "h": 287.3
  },
  "luminance": 0.01987
}

Semantic roles & 50–950 ramp

primary
#2A1762
secondary
#81993C
accent
#E543BC
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A1762

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

Preview Lab → · Contrast checker → · Palette generator →

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