#2B1365#2B1365

#2B1365 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.132 H 288.2°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#2B1365
RGBrgb(43, 19, 101)
HSLhsl(258, 68%, 24%)
HSVhsv(258, 81%, 40%)
CMYKcmyk(57.4%, 81.2%, 0%, 60.4%)
CIE-LABlab(15.05, 33.71, -43.64)
CIE-LCHlch(15.05, 55.14, 307.68°)
OKLaboklab(28.29% 0.0412 -0.1255)
OKLCHoklch(28.29% 0.132 288.2)
XYZxyz(3.5774, 1.9187, 12.4912)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1365 #4D6513
analogous
#132465 #2B1365 #541365
triadic
#2B1365 #652B13 #13652B
tetradic
#2B1365 #651324 #4D6513 #136554
square
#2B1365 #651324 #4D6513 #136554
split-complementary
#2B1365 #655413 #246513
monochromatic
#0B051A #150931 #2B1365 #411D99 #5726CC

Accessibility & contrast

On white

15.18
#2B1365 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2B1365 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1365
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1365#FFFFFF#000000##FFFFFF
##2B13651.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002867
Deuteranopia (green-blind)
#002463
Tritanopia (blue-blind)
#132A3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b1365;
/* rgb */ color: rgb(43, 19, 101);
/* oklch */ color: oklch(28.3% 0.132 288.2);
Tailwind
colors: {
  custom: {
    50: '#6c5492',
    500: '#2b1365',
    950: '#000000',
  },
}
SCSS
$custom: #2b1365;
$custom-light: #6c5492;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1365",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 101
  },
  "hsl": {
    "h": 257.561,
    "s": 68.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28288,
    "c": 0.13211,
    "h": 288.2
  },
  "luminance": 0.01919
}

Semantic roles & 50–950 ramp

primary
#2B1365
secondary
#7F9D37
accent
#EB3DB8
background
#F6F4F9
surface
#ECE8F1
border
#C7C4CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1365

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

Preview Lab → · Contrast checker → · Palette generator →

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