#2A1364#2A1364

#2A1364 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.131 H 287.7°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#2A1364
RGBrgb(42, 19, 100)
HSLhsl(257, 68%, 23%)
HSVhsv(257, 81%, 39%)
CMYKcmyk(58%, 81%, 0%, 60.8%)
CIE-LABlab(14.83, 33.24, -43.35)
CIE-LCHlch(14.83, 54.63, 307.49°)
OKLaboklab(28.07% 0.0398 -0.1247)
OKLCHoklch(28.07% 0.131 287.7)
XYZxyz(3.4873, 1.8779, 12.2328)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1364 #4D6413
analogous
#132464 #2A1364 #521364
triadic
#2A1364 #642A13 #13642A
tetradic
#2A1364 #641324 #4D6413 #136452
square
#2A1364 #641324 #4D6413 #136452
split-complementary
#2A1364 #645213 #246413
monochromatic
#0B051A #140931 #2A1364 #401D97 #5527CB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A1364#FFFFFF#000000##FFFFFF
##2A13641.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)
#002766
Deuteranopia (green-blind)
#002363
Tritanopia (blue-blind)
#112A3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a1364;
/* rgb */ color: rgb(42, 19, 100);
/* oklch */ color: oklch(28.1% 0.131 287.7);
Tailwind
colors: {
  custom: {
    50: '#6b5491',
    500: '#2a1364',
    950: '#000000',
  },
}
SCSS
$custom: #2a1364;
$custom-light: #6b5491;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1364",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 100
  },
  "hsl": {
    "h": 257.037,
    "s": 68.067,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28073,
    "c": 0.13091,
    "h": 287.7
  },
  "luminance": 0.01878
}

Semantic roles & 50–950 ramp

primary
#2A1364
secondary
#7F9C37
accent
#EB3DBA
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A1364

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

Preview Lab → · Contrast checker → · Palette generator →

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