#2B1964#2B1964

#2B1964 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.124 H 287.0°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#2B1964
RGBrgb(43, 25, 100)
HSLhsl(254, 60%, 25%)
HSVhsv(254, 75%, 39%)
CMYKcmyk(57%, 75%, 0%, 60.8%)
CIE-LABlab(16.15, 30.02, -41.18)
CIE-LCHlch(16.15, 50.96, 306.09°)
OKLaboklab(29.03% 0.0361 -0.1184)
OKLCHoklch(29.03% 0.124 287)
XYZxyz(3.6435, 2.1288, 12.2730)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1964 #526419
analogous
#192D64 #2B1964 #511964
triadic
#2B1964 #642B19 #19642B
tetradic
#2B1964 #64192D #526419 #196451
square
#2B1964 #64192D #526419 #196451
split-complementary
#2B1964 #645119 #2D6419
monochromatic
#0B0618 #160D33 #2B1964 #402595 #5531C6

Accessibility & contrast

On white

14.73
#2B1964 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1964
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1964#FFFFFF#000000##FFFFFF
##2B19641.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1964;
/* rgb */ color: rgb(43, 25, 100);
/* oklch */ color: oklch(29.0% 0.124 287.0);
Tailwind
colors: {
  custom: {
    50: '#6b5791',
    500: '#2b1964',
    950: '#000000',
  },
}
SCSS
$custom: #2b1964;
$custom-light: #6b5791;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1964",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 100
  },
  "hsl": {
    "h": 254.4,
    "s": 60,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29029,
    "c": 0.12376,
    "h": 287
  },
  "luminance": 0.02129
}

Semantic roles & 50–950 ramp

primary
#2B1964
secondary
#849A3F
accent
#E345BD
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1964

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

Preview Lab → · Contrast checker → · Palette generator →

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