#2A1367#2A1367

#2A1367 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.135 H 286.8°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#2A1367
RGBrgb(42, 19, 103)
HSLhsl(256, 69%, 24%)
HSVhsv(256, 82%, 40%)
CMYKcmyk(59.2%, 81.6%, 0%, 59.6%)
CIE-LABlab(15.15, 34.18, -44.80)
CIE-LCHlch(15.15, 56.35, 307.34°)
OKLaboklab(28.39% 0.0389 -0.129)
OKLCHoklch(28.39% 0.135 286.8)
XYZxyz(3.6352, 1.9371, 13.0117)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1367 #506713
analogous
#132667 #2A1367 #541367
triadic
#2A1367 #672A13 #13672A
tetradic
#2A1367 #671326 #506713 #136754
square
#2A1367 #671326 #506713 #136754
split-complementary
#2A1367 #675413 #266713
monochromatic
#0B051A #150933 #2A1367 #3F1D9B #5426CE

Accessibility & contrast

On white

15.14
#2A1367 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2A1367 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1367
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1367#FFFFFF#000000##FFFFFF
##2A13671.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002869
Deuteranopia (green-blind)
#002465
Tritanopia (blue-blind)
#0E2B3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a1367;
/* rgb */ color: rgb(42, 19, 103);
/* oklch */ color: oklch(28.4% 0.135 286.8);
Tailwind
colors: {
  custom: {
    50: '#6c5493',
    500: '#2a1367',
    950: '#000000',
  },
}
SCSS
$custom: #2a1367;
$custom-light: #6c5493;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1367",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 103
  },
  "hsl": {
    "h": 256.429,
    "s": 68.852,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28394,
    "c": 0.13469,
    "h": 286.8
  },
  "luminance": 0.01937
}

Semantic roles & 50–950 ramp

primary
#2A1367
secondary
#829E37
accent
#EC3CBC
background
#F6F4F9
surface
#ECE8F1
border
#C7C4CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A1367

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

Preview Lab → · Contrast checker → · Palette generator →

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