#2B1963#2B1963

#2B1963 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.122 H 287.2°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#2B1963
RGBrgb(43, 25, 99)
HSLhsl(255, 60%, 24%)
HSVhsv(255, 75%, 39%)
CMYKcmyk(56.6%, 74.7%, 0%, 61.2%)
CIE-LABlab(16.05, 29.69, -40.68)
CIE-LCHlch(16.05, 50.36, 306.12°)
OKLaboklab(28.93% 0.0363 -0.1169)
OKLCHoklch(28.93% 0.122 287.2)
XYZxyz(3.5954, 2.1095, 12.0197)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1963 #516319
analogous
#192C63 #2B1963 #501963
triadic
#2B1963 #632B19 #19632B
tetradic
#2B1963 #63192C #516319 #196350
square
#2B1963 #63192C #516319 #196350
split-complementary
#2B1963 #635019 #2C6319
monochromatic
#0B0618 #160D32 #2B1963 #402594 #5532C5

Accessibility & contrast

On white

14.77
#2B1963 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2B1963 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1963
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1963#FFFFFF#000000##FFFFFF
##2B19631.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1963;
/* rgb */ color: rgb(43, 25, 99);
/* oklch */ color: oklch(28.9% 0.122 287.2);
Tailwind
colors: {
  custom: {
    50: '#6b5790',
    500: '#2b1963',
    950: '#000000',
  },
}
SCSS
$custom: #2b1963;
$custom-light: #6b5790;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1963",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 99
  },
  "hsl": {
    "h": 254.595,
    "s": 59.677,
    "l": 24.314
  },
  "oklch": {
    "l": 0.2893,
    "c": 0.12242,
    "h": 287.2
  },
  "luminance": 0.0211
}

Semantic roles & 50–950 ramp

primary
#2B1963
secondary
#83993F
accent
#E345BC
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2B1963

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

Preview Lab → · Contrast checker → · Palette generator →

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