#2B1A63#2B1A63

#2B1A63 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.1% C 0.121 H 286.9°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#2B1A63
RGBrgb(43, 26, 99)
HSLhsl(254, 58%, 25%)
HSVhsv(254, 74%, 39%)
CMYKcmyk(56.6%, 73.7%, 0%, 61.2%)
CIE-LABlab(16.27, 29.08, -40.32)
CIE-LCHlch(16.27, 49.72, 305.80°)
OKLaboklab(29.09% 0.0353 -0.1159)
OKLCHoklch(29.09% 0.121 286.9)
XYZxyz(3.6171, 2.1530, 12.0269)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A63 #52631A
analogous
#1A2D63 #2B1A63 #501A63
triadic
#2B1A63 #632B1A #1A632B
tetradic
#2B1A63 #631A2D #52631A #1A6350
square
#2B1A63 #631A2D #52631A #1A6350
split-complementary
#2B1A63 #63501A #2D631A
monochromatic
#0B0618 #160D33 #2B1A63 #402793 #5533C4

Accessibility & contrast

On white

14.68
#2B1A63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2B1A63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A63
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A63#FFFFFF#000000##FFFFFF
##2B1A631.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A65
Deuteranopia (green-blind)
#002662
Tritanopia (blue-blind)
#142D3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b1a63;
/* rgb */ color: rgb(43, 26, 99);
/* oklch */ color: oklch(29.1% 0.121 286.9);
Tailwind
colors: {
  custom: {
    50: '#6b5890',
    500: '#2b1a63',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a63;
$custom-light: #6b5890;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a63",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 99
  },
  "hsl": {
    "h": 253.973,
    "s": 58.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29086,
    "c": 0.12112,
    "h": 286.9
  },
  "luminance": 0.02153
}

Semantic roles & 50–950 ramp

primary
#2B1A63
secondary
#849940
accent
#E246BD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2B1A63

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

Preview Lab → · Contrast checker → · Palette generator →

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