#2B1765#2B1765

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

Color values

HEX#2B1765
RGBrgb(43, 23, 101)
HSLhsl(255, 63%, 24%)
HSVhsv(255, 77%, 40%)
CMYKcmyk(57.4%, 77.2%, 0%, 60.4%)
CIE-LABlab(15.83, 31.51, -42.37)
CIE-LCHlch(15.83, 52.80, 306.64°)
OKLaboklab(28.83% 0.0377 -0.1218)
OKLCHoklch(28.83% 0.128 287.2)
XYZxyz(3.6509, 2.0658, 12.5158)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1765 #516517
analogous
#172A65 #2B1765 #521765
triadic
#2B1765 #652B17 #17652B
tetradic
#2B1765 #65172A #516517 #176552
square
#2B1765 #65172A #516517 #176552
split-complementary
#2B1765 #655217 #2A6517
monochromatic
#0B0619 #160C33 #2B1765 #402297 #552EC9

Accessibility & contrast

On white

14.86
#2B1765 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2B1765 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1765
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1765#FFFFFF#000000##FFFFFF
##2B17651.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002564
Tritanopia (blue-blind)
#132C3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b1765;
/* rgb */ color: rgb(43, 23, 101);
/* oklch */ color: oklch(28.8% 0.128 287.2);
Tailwind
colors: {
  custom: {
    50: '#6c5692',
    500: '#2b1765',
    950: '#000000',
  },
}
SCSS
$custom: #2b1765;
$custom-light: #6c5692;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1765",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 101
  },
  "hsl": {
    "h": 255.385,
    "s": 62.903,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28832,
    "c": 0.12755,
    "h": 287.2
  },
  "luminance": 0.02066
}

Semantic roles & 50–950 ramp

primary
#2B1765
secondary
#839B3C
accent
#E642BC
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1765

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

Preview Lab → · Contrast checker → · Palette generator →

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