#2B1972#2B1972

#2B1972 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.142 H 283.3°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#2B1972
RGBrgb(43, 25, 114)
HSLhsl(252, 64%, 27%)
HSVhsv(252, 78%, 45%)
CMYKcmyk(62.3%, 78.1%, 0%, 55.3%)
CIE-LABlab(17.57, 34.57, -48.00)
CIE-LCHlch(17.57, 59.15, 305.76°)
OKLaboklab(30.47% 0.0327 -0.1383)
OKLCHoklch(30.47% 0.142 283.3)
XYZxyz(4.3802, 2.4235, 16.1533)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1972 #607219
analogous
#193372 #2B1972 #581972
triadic
#2B1972 #722B19 #19722B
tetradic
#2B1972 #721933 #607219 #197258
square
#2B1972 #721933 #607219 #197258
split-complementary
#2B1972 #725819 #337219
monochromatic
#090619 #180E40 #2B1972 #3E24A4 #5333D2

Accessibility & contrast

On white

14.14
#2B1972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2B1972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1972
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1972#FFFFFF#000000##FFFFFF
##2B19721.0014.141.4814.14
#FFFFFF14.141.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b1972;
/* rgb */ color: rgb(43, 25, 114);
/* oklch */ color: oklch(30.5% 0.142 283.3);
Tailwind
colors: {
  custom: {
    50: '#6e589b',
    500: '#2b1972',
    950: '#000000',
  },
}
SCSS
$custom: #2b1972;
$custom-light: #6e589b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1972",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 252.135,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30467,
    "c": 0.14214,
    "h": 283.3
  },
  "luminance": 0.02424
}

Semantic roles & 50–950 ramp

primary
#2B1972
secondary
#92A740
accent
#E741C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1972

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

Preview Lab → · Contrast checker → · Palette generator →

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