#2B012F#2B012F

#2B012F is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.8% C 0.095 H 324.4°. Best body text is #FFFFFF at 18.29:1 contrast (WCAG AA passes).

Color values

HEX#2B012F
RGBrgb(43, 1, 47)
HSLhsl(295, 96%, 9%)
HSVhsv(295, 98%, 18%)
CMYKcmyk(8.5%, 97.9%, 0%, 81.6%)
CIE-LABlab(6.69, 28.18, -19.57)
CIE-LCHlch(6.69, 34.31, 325.22°)
OKLaboklab(20.77% 0.0769 -0.0551)
OKLCHoklch(20.77% 0.095 324.4)
XYZxyz(1.5202, 0.7406, 2.7517)
Luminance0.0074 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B012F #052F01
analogous
#14012F #2B012F #2F011C
triadic
#2B012F #2F2B01 #012F2B
tetradic
#2B012F #2F1401 #052F01 #011C2F
square
#2B012F #2F1401 #052F01 #011C2F
split-complementary
#2B012F #1C2F01 #012F14
monochromatic
#1B011E #1B011E #2B012F #62026B #9904A7

Accessibility & contrast

On white

18.29
#2B012F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#2B012F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B012F
18.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B012F#FFFFFF#000000##FFFFFF
##2B012F1.0018.291.1518.29
#FFFFFF18.291.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001230
Deuteranopia (green-blind)
#09172E
Tritanopia (blue-blind)
#2C0918
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2b012f;
/* rgb */ color: rgb(43, 1, 47);
/* oklch */ color: oklch(20.8% 0.095 324.4);
Tailwind
colors: {
  custom: {
    50: '#674768',
    500: '#2b012f',
    950: '#000000',
  },
}
SCSS
$custom: #2b012f;
$custom-light: #674768;
$custom-dark: #000000;
JSON
{
  "hex": "#2b012f",
  "rgb": {
    "r": 43,
    "g": 1,
    "b": 47
  },
  "hsl": {
    "h": 294.783,
    "s": 95.833,
    "l": 9.412
  },
  "oklch": {
    "l": 0.2077,
    "c": 0.09457,
    "h": 324.4
  },
  "luminance": 0.00741
}

Semantic roles & 50–950 ramp

primary
#2B012F
secondary
#1F7517
accent
#FF293B
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060006
muted
#7A777A

Preview Lab

Preview with #2B012F

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

Preview Lab → · Contrast checker → · Palette generator →

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