#2A1365#2A1365

#2A1365 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.132 H 287.4°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#2A1365
RGBrgb(42, 19, 101)
HSLhsl(257, 68%, 24%)
HSVhsv(257, 81%, 40%)
CMYKcmyk(58.4%, 81.2%, 0%, 60.4%)
CIE-LABlab(14.94, 33.56, -43.83)
CIE-LCHlch(14.94, 55.20, 307.44°)
OKLaboklab(28.18% 0.0395 -0.1261)
OKLCHoklch(28.18% 0.132 287.4)
XYZxyz(3.5360, 1.8974, 12.4893)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1365 #4E6513
analogous
#132565 #2A1365 #531365
triadic
#2A1365 #652A13 #13652A
tetradic
#2A1365 #651325 #4E6513 #136553
square
#2A1365 #651325 #4E6513 #136553
split-complementary
#2A1365 #655313 #256513
monochromatic
#0B051A #150931 #2A1365 #3F1D99 #5526CC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A1365#FFFFFF#000000##FFFFFF
##2A13651.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)
#002767
Deuteranopia (green-blind)
#002363
Tritanopia (blue-blind)
#102A3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a1365;
/* rgb */ color: rgb(42, 19, 101);
/* oklch */ color: oklch(28.2% 0.132 287.4);
Tailwind
colors: {
  custom: {
    50: '#6c5492',
    500: '#2a1365',
    950: '#000000',
  },
}
SCSS
$custom: #2a1365;
$custom-light: #6c5492;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1365",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 101
  },
  "hsl": {
    "h": 256.829,
    "s": 68.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28179,
    "c": 0.13218,
    "h": 287.4
  },
  "luminance": 0.01898
}

Semantic roles & 50–950 ramp

primary
#2A1365
secondary
#809D37
accent
#EB3DBA
background
#F6F4F9
surface
#ECE8F1
border
#C7C4CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A1365

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

Preview Lab → · Contrast checker → · Palette generator →

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