#2B1269#2B1269

#2B1269 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.138 H 287.1°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#2B1269
RGBrgb(43, 18, 105)
HSLhsl(257, 71%, 24%)
HSVhsv(257, 83%, 41%)
CMYKcmyk(59%, 82.9%, 0%, 58.8%)
CIE-LABlab(15.31, 35.45, -45.86)
CIE-LCHlch(15.31, 57.96, 307.70°)
OKLaboklab(28.59% 0.0406 -0.132)
OKLCHoklch(28.59% 0.138 287.1)
XYZxyz(3.7616, 1.9659, 13.5431)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1269 #506912
analogous
#122569 #2B1269 #571269
triadic
#2B1269 #692B12 #12692B
tetradic
#2B1269 #691225 #506912 #126957
square
#2B1269 #691225 #506912 #126957
split-complementary
#2B1269 #695712 #256912
monochromatic
#0B041A #160935 #2B1269 #401B9D #5624D1

Accessibility & contrast

On white

15.07
#2B1269 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2B1269 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1269
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1269#FFFFFF#000000##FFFFFF
##2B12691.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286B
Deuteranopia (green-blind)
#002467
Tritanopia (blue-blind)
#0F2B3D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b1269;
/* rgb */ color: rgb(43, 18, 105);
/* oklch */ color: oklch(28.6% 0.138 287.1);
Tailwind
colors: {
  custom: {
    50: '#6d5495',
    500: '#2b1269',
    950: '#000000',
  },
}
SCSS
$custom: #2b1269;
$custom-light: #6d5495;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1269",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 105
  },
  "hsl": {
    "h": 257.241,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28593,
    "c": 0.13812,
    "h": 287.1
  },
  "luminance": 0.01966
}

Semantic roles & 50–950 ramp

primary
#2B1269
secondary
#82A136
accent
#ED3ABA
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2B1269

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

Preview Lab → · Contrast checker → · Palette generator →

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