#2B1950#2B1950

#2B1950 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.096 H 294.1°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#2B1950
RGBrgb(43, 25, 80)
HSLhsl(260, 52%, 21%)
HSVhsv(260, 69%, 31%)
CMYKcmyk(46.2%, 68.8%, 0%, 68.6%)
CIE-LABlab(14.33, 23.52, -30.71)
CIE-LCHlch(14.33, 38.69, 307.44°)
OKLaboklab(27.16% 0.0393 -0.0876)
OKLCHoklch(27.16% 0.096 294.1)
XYZxyz(2.7915, 1.7880, 7.7859)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1950 #3E5019
analogous
#192250 #2B1950 #461950
triadic
#2B1950 #502B19 #19502B
tetradic
#2B1950 #501922 #3E5019 #195046
square
#2B1950 #501922 #3E5019 #195046
split-complementary
#2B1950 #504619 #225019
monochromatic
#0D0717 #120A21 #2B1950 #44287F #5D36AD

Accessibility & contrast

On white

15.47
#2B1950 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2B1950 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1950
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1950#FFFFFF#000000##FFFFFF
##2B19501.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002552
Deuteranopia (green-blind)
#00234F
Tritanopia (blue-blind)
#212631
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b1950;
/* rgb */ color: rgb(43, 25, 80);
/* oklch */ color: oklch(27.2% 0.096 294.1);
Tailwind
colors: {
  custom: {
    50: '#685781',
    500: '#2b1950',
    950: '#000000',
  },
}
SCSS
$custom: #2b1950;
$custom-light: #685781;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1950",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 80
  },
  "hsl": {
    "h": 259.636,
    "s": 52.381,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27157,
    "c": 0.09603,
    "h": 294.1
  },
  "luminance": 0.01788
}

Semantic roles & 50–950 ramp

primary
#2B1950
secondary
#6F863E
accent
#DC4CAD
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2B1950

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

Preview Lab → · Contrast checker → · Palette generator →

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