#2B1A7A#2B1A7A

#2B1A7A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.151 H 281.3°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#2B1A7A
RGBrgb(43, 26, 122)
HSLhsl(251, 65%, 29%)
HSVhsv(251, 79%, 48%)
CMYKcmyk(64.8%, 78.7%, 0%, 52.2%)
CIE-LABlab(18.62, 36.60, -51.42)
CIE-LCHlch(18.62, 63.11, 305.44°)
OKLaboklab(31.46% 0.0298 -0.1483)
OKLCHoklch(31.46% 0.151 281.3)
XYZxyz(4.8774, 2.6572, 18.6644)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A7A #697A1A
analogous
#1A397A #2B1A7A #5B1A7A
triadic
#2B1A7A #7A2B1A #1A7A2B
tetradic
#2B1A7A #7A1A39 #697A1A #1A7A5B
square
#2B1A7A #7A1A39 #697A1A #1A7A5B
split-complementary
#2B1A7A #7A5B1A #397A1A
monochromatic
#090519 #190F48 #2B1A7A #3D25AC #5539D5

Accessibility & contrast

On white

13.71
#2B1A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2B1A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A7A
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A7A#FFFFFF#000000##FFFFFF
##2B1A7A1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b1a7a;
/* rgb */ color: rgb(43, 26, 122);
/* oklch */ color: oklch(31.5% 0.151 281.3);
Tailwind
colors: {
  custom: {
    50: '#7059a1',
    500: '#2b1a7a',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a7a;
$custom-light: #7059a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a7a",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 250.625,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31459,
    "c": 0.1513,
    "h": 281.3
  },
  "luminance": 0.02658
}

Semantic roles & 50–950 ramp

primary
#2B1A7A
secondary
#9BAE41
accent
#E840CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B1A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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