#2B1366#2B1366

#2B1366 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.133 H 287.8°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#2B1366
RGBrgb(43, 19, 102)
HSLhsl(257, 69%, 24%)
HSVhsv(257, 81%, 40%)
CMYKcmyk(57.8%, 81.4%, 0%, 60%)
CIE-LABlab(15.16, 34.01, -44.12)
CIE-LCHlch(15.16, 55.71, 307.63°)
OKLaboklab(28.39% 0.0409 -0.1269)
OKLCHoklch(28.39% 0.133 287.8)
XYZxyz(3.6267, 1.9385, 12.7509)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1366 #4E6613
analogous
#132466 #2B1366 #541366
triadic
#2B1366 #662B13 #13662B
tetradic
#2B1366 #661324 #4E6613 #136654
square
#2B1366 #661324 #4E6613 #136654
split-complementary
#2B1366 #665413 #246613
monochromatic
#0B051A #150932 #2B1366 #411D9A #5626CD

Accessibility & contrast

On white

15.13
#2B1366 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1366
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1366#FFFFFF#000000##FFFFFF
##2B13661.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002868
Deuteranopia (green-blind)
#002464
Tritanopia (blue-blind)
#122B3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b1366;
/* rgb */ color: rgb(43, 19, 102);
/* oklch */ color: oklch(28.4% 0.133 287.8);
Tailwind
colors: {
  custom: {
    50: '#6c5493',
    500: '#2b1366',
    950: '#000000',
  },
}
SCSS
$custom: #2b1366;
$custom-light: #6c5493;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1366",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 102
  },
  "hsl": {
    "h": 257.349,
    "s": 68.595,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28394,
    "c": 0.13336,
    "h": 287.8
  },
  "luminance": 0.01939
}

Semantic roles & 50–950 ramp

primary
#2B1366
secondary
#809D37
accent
#EB3CB9
background
#F6F4F9
surface
#ECE8F1
border
#C7C4CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1366

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

Preview Lab → · Contrast checker → · Palette generator →

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