#2A1338#2A1338

#2A1338 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.072 H 310.8°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#2A1338
RGBrgb(42, 19, 56)
HSLhsl(277, 49%, 15%)
HSVhsv(277, 66%, 22%)
CMYKcmyk(25%, 66.1%, 0%, 78%)
CIE-LABlab(10.87, 19.89, -19.48)
CIE-LCHlch(10.87, 27.84, 315.60°)
OKLaboklab(24.01% 0.0472 -0.0547)
OKLCHoklch(24.01% 0.072 310.8)
XYZxyz(1.9014, 1.2435, 3.8805)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1338 #213813
analogous
#181338 #2A1338 #381334
triadic
#2A1338 #382A13 #13382A
tetradic
#2A1338 #381813 #213813 #133438
square
#2A1338 #381813 #213813 #133438
split-complementary
#2A1338 #343813 #133818
monochromatic
#110817 #110817 #2A1338 #4C2366 #6F3293

Accessibility & contrast

On white

16.82
#2A1338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2A1338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1338
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1338#FFFFFF#000000##FFFFFF
##2A13381.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081C39
Deuteranopia (green-blind)
#101E37
Tritanopia (blue-blind)
#281A23
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a1338;
/* rgb */ color: rgb(42, 19, 56);
/* oklch */ color: oklch(24.0% 0.072 310.8);
Tailwind
colors: {
  custom: {
    50: '#65526f',
    500: '#2a1338',
    950: '#000000',
  },
}
SCSS
$custom: #2a1338;
$custom-light: #65526f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1338",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 56
  },
  "hsl": {
    "h": 277.297,
    "s": 49.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24011,
    "c": 0.07223,
    "h": 310.8
  },
  "luminance": 0.01244
}

Semantic roles & 50–950 ramp

primary
#2A1338
secondary
#4C7037
accent
#D94F83
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2A1338

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

Preview Lab → · Contrast checker → · Palette generator →

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