#2B1973#2B1973

#2B1973 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.143 H 283.1°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#2B1973
RGBrgb(43, 25, 115)
HSLhsl(252, 64%, 27%)
HSVhsv(252, 78%, 45%)
CMYKcmyk(62.6%, 78.3%, 0%, 54.9%)
CIE-LABlab(17.67, 34.89, -48.47)
CIE-LCHlch(17.67, 59.72, 305.75°)
OKLaboklab(30.57% 0.0324 -0.1397)
OKLCHoklch(30.57% 0.143 283.1)
XYZxyz(4.4374, 2.4464, 16.4547)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1973 #617319
analogous
#193473 #2B1973 #581973
triadic
#2B1973 #732B19 #19732B
tetradic
#2B1973 #731934 #617319 #197358
square
#2B1973 #731934 #617319 #197358
split-complementary
#2B1973 #735819 #347319
monochromatic
#090519 #180E41 #2B1973 #3E24A5 #5334D3

Accessibility & contrast

On white

14.10
#2B1973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2B1973 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1973
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1973#FFFFFF#000000##FFFFFF
##2B19731.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b1973;
/* rgb */ color: rgb(43, 25, 115);
/* oklch */ color: oklch(30.6% 0.143 283.1);
Tailwind
colors: {
  custom: {
    50: '#6e589c',
    500: '#2b1973',
    950: '#000000',
  },
}
SCSS
$custom: #2b1973;
$custom-light: #6e589c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1973",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 115
  },
  "hsl": {
    "h": 252,
    "s": 64.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30573,
    "c": 0.14343,
    "h": 283.1
  },
  "luminance": 0.02447
}

Semantic roles & 50–950 ramp

primary
#2B1973
secondary
#93A840
accent
#E741C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1973

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

Preview Lab → · Contrast checker → · Palette generator →

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