#2B1769#2B1769

#2B1769 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.133 H 286.0°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#2B1769
RGBrgb(43, 23, 105)
HSLhsl(255, 64%, 25%)
HSVhsv(255, 78%, 41%)
CMYKcmyk(59%, 78.1%, 0%, 58.8%)
CIE-LABlab(16.24, 32.79, -44.33)
CIE-LCHlch(16.24, 55.14, 306.49°)
OKLaboklab(29.24% 0.0367 -0.1276)
OKLCHoklch(29.24% 0.133 286)
XYZxyz(3.8517, 2.1461, 13.5731)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1769 #556917
analogous
#172C69 #2B1769 #541769
triadic
#2B1769 #692B17 #17692B
tetradic
#2B1769 #69172C #556917 #176954
square
#2B1769 #69172C #556917 #176954
split-complementary
#2B1769 #695417 #2C6917
monochromatic
#0A0519 #160C37 #2B1769 #40229B #542DCD

Accessibility & contrast

On white

14.69
#2B1769 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1769
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1769#FFFFFF#000000##FFFFFF
##2B17691.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6B
Deuteranopia (green-blind)
#002667
Tritanopia (blue-blind)
#0E2E3F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b1769;
/* rgb */ color: rgb(43, 23, 105);
/* oklch */ color: oklch(29.2% 0.133 286.0);
Tailwind
colors: {
  custom: {
    50: '#6c5695',
    500: '#2b1769',
    950: '#000000',
  },
}
SCSS
$custom: #2b1769;
$custom-light: #6c5695;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1769",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 105
  },
  "hsl": {
    "h": 254.634,
    "s": 64.063,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29244,
    "c": 0.13276,
    "h": 286
  },
  "luminance": 0.02146
}

Semantic roles & 50–950 ramp

primary
#2B1769
secondary
#879F3D
accent
#E741BE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2B1769

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

Preview Lab → · Contrast checker → · Palette generator →

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