#2B023A#2B023A

#2B023A is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.9% C 0.103 H 314.7°. Best body text is #FFFFFF at 17.91:1 contrast (WCAG AA passes).

Color values

HEX#2B023A
RGBrgb(43, 2, 58)
HSLhsl(284, 93%, 12%)
HSVhsv(284, 97%, 23%)
CMYKcmyk(25.9%, 96.6%, 0%, 77.3%)
CIE-LABlab(7.79, 30.27, -25.88)
CIE-LCHlch(7.79, 39.82, 319.47°)
OKLaboklab(21.9% 0.0724 -0.0733)
OKLCHoklch(21.9% 0.103 314.7)
XYZxyz(1.7816, 0.8626, 4.0748)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B023A #113A02
analogous
#0F023A #2B023A #3A022D
triadic
#2B023A #3A2B02 #023A2B
tetradic
#2B023A #3A0F02 #113A02 #022D3A
square
#2B023A #3A0F02 #113A02 #022D3A
split-complementary
#2B023A #2D3A02 #023A0F
monochromatic
#16011E #16011E #2B023A #570475 #8306B0

Accessibility & contrast

On white

17.91
#2B023A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#2B023A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B023A
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B023A#FFFFFF#000000##FFFFFF
##2B023A1.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153B
Deuteranopia (green-blind)
#001839
Tritanopia (blue-blind)
#2A0F1F
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2b023a;
/* rgb */ color: rgb(43, 2, 58);
/* oklch */ color: oklch(21.9% 0.103 314.7);
Tailwind
colors: {
  custom: {
    50: '#674871',
    500: '#2b023a',
    950: '#000000',
  },
}
SCSS
$custom: #2b023a;
$custom-light: #674871;
$custom-dark: #000000;
JSON
{
  "hex": "#2b023a",
  "rgb": {
    "r": 43,
    "g": 2,
    "b": 58
  },
  "hsl": {
    "h": 283.929,
    "s": 93.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21895,
    "c": 0.10299,
    "h": 314.7
  },
  "luminance": 0.00862
}

Semantic roles & 50–950 ramp

primary
#2B023A
secondary
#357D1A
accent
#FF2962
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2B023A

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

Preview Lab → · Contrast checker → · Palette generator →

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