#2A143F#2A143F

#2A143F is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.7% C 0.080 H 304.8°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#2A143F
RGBrgb(42, 20, 63)
HSLhsl(271, 52%, 16%)
HSVhsv(271, 68%, 25%)
CMYKcmyk(33.3%, 68.3%, 0%, 75.3%)
CIE-LABlab(11.63, 21.25, -23.27)
CIE-LCHlch(11.63, 31.51, 312.41°)
OKLaboklab(24.73% 0.0457 -0.0658)
OKLCHoklch(24.73% 0.08 304.8)
XYZxyz(2.1020, 1.3514, 4.8518)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A143F #293F14
analogous
#15143F #2A143F #3F143F
triadic
#2A143F #3F2A14 #143F2A
tetradic
#2A143F #3F1514 #293F14 #143F3F
square
#2A143F #3F1514 #293F14 #143F3F
split-complementary
#2A143F #3F3F14 #143F15
monochromatic
#0F0717 #0F0717 #2A143F #49236D #68319C

Accessibility & contrast

On white

16.53
#2A143F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2A143F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A143F
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A143F#FFFFFF#000000##FFFFFF
##2A143F1.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021E40
Deuteranopia (green-blind)
#0B1F3E
Tritanopia (blue-blind)
#261D27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a143f;
/* rgb */ color: rgb(42, 20, 63);
/* oklch */ color: oklch(24.7% 0.080 304.8);
Tailwind
colors: {
  custom: {
    50: '#655374',
    500: '#2a143f',
    950: '#000000',
  },
}
SCSS
$custom: #2a143f;
$custom-light: #655374;
$custom-dark: #000000;
JSON
{
  "hex": "#2a143f",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 63
  },
  "hsl": {
    "h": 270.698,
    "s": 51.807,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24728,
    "c": 0.0801,
    "h": 304.8
  },
  "luminance": 0.01351
}

Semantic roles & 50–950 ramp

primary
#2A143F
secondary
#577738
accent
#DB4D92
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A143F

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

Preview Lab → · Contrast checker → · Palette generator →

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