#2A1838#2A1838

#2A1838 is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.062 H 308.5°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#2A1838
RGBrgb(42, 24, 56)
HSLhsl(274, 40%, 16%)
HSVhsv(274, 57%, 22%)
CMYKcmyk(25%, 57.1%, 0%, 78%)
CIE-LABlab(12.16, 16.53, -17.44)
CIE-LCHlch(12.16, 24.03, 313.48°)
OKLaboklab(24.96% 0.0388 -0.0487)
OKLCHoklch(24.96% 0.062 308.5)
XYZxyz(1.9951, 1.4311, 3.9117)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1838 #263818
analogous
#1A1838 #2A1838 #381836
triadic
#2A1838 #382A18 #18382A
tetradic
#2A1838 #381A18 #263818 #183638
square
#2A1838 #381A18 #263818 #183638
split-complementary
#2A1838 #363818 #18381A
monochromatic
#100915 #100915 #2A1838 #4A2A63 #6A3D8E

Accessibility & contrast

On white

16.33
#2A1838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2A1838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1838
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1838#FFFFFF#000000##FFFFFF
##2A18381.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101F39
Deuteranopia (green-blind)
#152037
Tritanopia (blue-blind)
#281D25
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a1838;
/* rgb */ color: rgb(42, 24, 56);
/* oklch */ color: oklch(25.0% 0.062 308.5);
Tailwind
colors: {
  custom: {
    50: '#64556f',
    500: '#2a1838',
    950: '#000000',
  },
}
SCSS
$custom: #2a1838;
$custom-light: #64556f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1838",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 56
  },
  "hsl": {
    "h": 273.75,
    "s": 40,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24962,
    "c": 0.06228,
    "h": 308.5
  },
  "luminance": 0.01431
}

Semantic roles & 50–950 ramp

primary
#2A1838
secondary
#536E3E
accent
#D0588C
background
#F6F4F6
surface
#EBE8EC
border
#C6C4C7
text
#050307
muted
#7A787A

Preview Lab

Preview with #2A1838

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

Preview Lab → · Contrast checker → · Palette generator →

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