#2B1A64#2B1A64

#2B1A64 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.2% C 0.122 H 286.7°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#2B1A64
RGBrgb(43, 26, 100)
HSLhsl(254, 59%, 25%)
HSVhsv(254, 74%, 39%)
CMYKcmyk(57%, 74%, 0%, 60.8%)
CIE-LABlab(16.37, 29.41, -40.83)
CIE-LCHlch(16.37, 50.32, 305.77°)
OKLaboklab(29.18% 0.0351 -0.1173)
OKLCHoklch(29.18% 0.122 286.7)
XYZxyz(3.6652, 2.1723, 12.2803)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A64 #53641A
analogous
#1A2E64 #2B1A64 #501A64
triadic
#2B1A64 #642B1A #1A642B
tetradic
#2B1A64 #641A2E #53641A #1A6450
square
#2B1A64 #641A2E #53641A #1A6450
split-complementary
#2B1A64 #64501A #2E641A
monochromatic
#0A0618 #160D33 #2B1A64 #402795 #5533C5

Accessibility & contrast

On white

14.64
#2B1A64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1A64
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A64#FFFFFF#000000##FFFFFF
##2B1A641.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A66
Deuteranopia (green-blind)
#002663
Tritanopia (blue-blind)
#142D3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b1a64;
/* rgb */ color: rgb(43, 26, 100);
/* oklch */ color: oklch(29.2% 0.122 286.7);
Tailwind
colors: {
  custom: {
    50: '#6b5891',
    500: '#2b1a64',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a64;
$custom-light: #6b5891;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a64",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 100
  },
  "hsl": {
    "h": 253.784,
    "s": 58.73,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29184,
    "c": 0.12248,
    "h": 286.7
  },
  "luminance": 0.02172
}

Semantic roles & 50–950 ramp

primary
#2B1A64
secondary
#859A40
accent
#E246BE
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1A64

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

Preview Lab → · Contrast checker → · Palette generator →

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