#2B052D

A color in the Purple, Crimson, Magenta family

#2b052d is a color in the Purple, Crimson, Magenta family: RGB(43, 5, 45), HSL(297°, 80%, 10%), CMYK(4%, 89%, 0%, 82%). Closest named color: midnightblue. Contrast is 18.07:1 on white and 1.16:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#2b052d
RGBrgb(43 5 45)
RGB (legacy)rgb(43, 5, 45)
RGB %rgb(17% 2% 18%)
HSLhsl(297 80% 10%)
HSV / HSBhsv(297, 89%, 18%)
HWBhwb(297 2% 82%)
CMYKcmyk(4%, 89%, 0%, 82%)
CIELAB (D50)lab(7.27 24.14 -16.99)
LCHlch(7.27 29.52 324.86)
OKLaboklab(0.2122 0.0702 -0.0475)
OKLCHoklch(0.2122 0.0848 325.89)
Decimal2819373

Properties

Color TonePurple, Crimson, Magenta
Closest named colormidnightblue ΔE 13.8
Closest web-safe color#330033
Hue297°
Saturation (HSL / HSV)80% / 89%
Lightness (HSL)10%
Brightness or Value (HSV)18%
Luminance (Rec.601 / Rec.709)8% / 6%
Relative luminance (WCAG)0.0081
Red / Green / Blue43 / 5 / 45

WCAG 2.2 Contrast Ratio

On White (#ffffff)
18.07:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.16:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 104.3 / 0 · As background with white / black text: Lc -106.6 / 0

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #2b052d;
  --color-brand-oklch: oklch(21.22% 0.0848 325.89);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(43 5 45 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2b052d] text-[#2b052d] border-[#2b052d]">