#2A0843#2A0843

#2A0843 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.4% C 0.103 H 305.8°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#2A0843
RGBrgb(42, 8, 67)
HSLhsl(275, 79%, 15%)
HSVhsv(275, 88%, 26%)
CMYKcmyk(37.3%, 88.1%, 0%, 73.7%)
CIE-LABlab(9.57, 29.06, -29.43)
CIE-LCHlch(9.57, 41.36, 314.64°)
OKLaboklab(23.36% 0.0604 -0.0838)
OKLCHoklch(23.36% 0.103 305.8)
XYZxyz(2.0546, 1.0712, 5.4076)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0843 #214308
analogous
#0C0843 #2A0843 #43083F
triadic
#2A0843 #432A08 #08432A
tetradic
#2A0843 #430C08 #214308 #083F43
square
#2A0843 #430C08 #214308 #083F43
split-complementary
#2A0843 #3F4308 #08430C
monochromatic
#11031B #11031B #2A0843 #4C0F7A #6F15B0

Accessibility & contrast

On white

17.30
#2A0843 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2A0843 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0843
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0843#FFFFFF#000000##FFFFFF
##2A08431.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A45
Deuteranopia (green-blind)
#001B42
Tritanopia (blue-blind)
#251725
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a0843;
/* rgb */ color: rgb(42, 8, 67);
/* oklch */ color: oklch(23.4% 0.103 305.8);
Tailwind
colors: {
  custom: {
    50: '#674c78',
    500: '#2a0843',
    950: '#000000',
  },
}
SCSS
$custom: #2a0843;
$custom-light: #674c78;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0843",
  "rgb": {
    "r": 42,
    "g": 8,
    "b": 67
  },
  "hsl": {
    "h": 274.576,
    "s": 78.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23364,
    "c": 0.10328,
    "h": 305.8
  },
  "luminance": 0.01071
}

Semantic roles & 50–950 ramp

primary
#2A0843
secondary
#4C8125
accent
#F53385
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0843

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

Preview Lab → · Contrast checker → · Palette generator →

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