#2B1750#2B1750

#2B1750 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.099 H 295.0°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#2B1750
RGBrgb(43, 23, 80)
HSLhsl(261, 55%, 20%)
HSVhsv(261, 71%, 31%)
CMYKcmyk(46.2%, 71.2%, 0%, 68.6%)
CIE-LABlab(13.86, 24.80, -31.48)
CIE-LCHlch(13.86, 40.08, 308.23°)
OKLaboklab(26.82% 0.0419 -0.0899)
OKLCHoklch(26.82% 0.099 295)
XYZxyz(2.7502, 1.7055, 7.7722)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1750 #3C5017
analogous
#171F50 #2B1750 #481750
triadic
#2B1750 #502B17 #17502B
tetradic
#2B1750 #50171F #3C5017 #175048
square
#2B1750 #50171F #3C5017 #175048
split-complementary
#2B1750 #504817 #1F5017
monochromatic
#0D0718 #110920 #2B1750 #452580 #5E32AF

Accessibility & contrast

On white

15.66
#2B1750 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2B1750 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1750
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1750#FFFFFF#000000##FFFFFF
##2B17501.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#00224F
Tritanopia (blue-blind)
#212431
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b1750;
/* rgb */ color: rgb(43, 23, 80);
/* oklch */ color: oklch(26.8% 0.099 295.0);
Tailwind
colors: {
  custom: {
    50: '#685582',
    500: '#2b1750',
    950: '#000000',
  },
}
SCSS
$custom: #2b1750;
$custom-light: #685582;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1750",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 80
  },
  "hsl": {
    "h": 261.053,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26815,
    "c": 0.09915,
    "h": 295
  },
  "luminance": 0.01706
}

Semantic roles & 50–950 ramp

primary
#2B1750
secondary
#6D873C
accent
#DF49AA
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2B1750

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

Preview Lab → · Contrast checker → · Palette generator →

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