#2B1D70#2B1D70

#2B1D70 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.9% C 0.135 H 282.8°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#2B1D70
RGBrgb(43, 29, 112)
HSLhsl(250, 59%, 28%)
HSVhsv(250, 74%, 44%)
CMYKcmyk(61.6%, 74.1%, 0%, 56.1%)
CIE-LABlab(18.20, 31.58, -45.67)
CIE-LCHlch(18.20, 55.53, 304.66°)
OKLaboklab(30.85% 0.0299 -0.1316)
OKLCHoklch(30.85% 0.135 282.8)
XYZxyz(4.3594, 2.5619, 15.5909)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D70 #62701D
analogous
#1D3970 #2B1D70 #541D70
triadic
#2B1D70 #702B1D #1D702B
tetradic
#2B1D70 #701D39 #62701D #1D7054
square
#2B1D70 #701D39 #62701D #1D7054
split-complementary
#2B1D70 #70541D #39701D
monochromatic
#090618 #18103F #2B1D70 #3E2AA1 #543BCC

Accessibility & contrast

On white

13.89
#2B1D70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2B1D70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1D70
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D70#FFFFFF#000000##FFFFFF
##2B1D701.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#013344
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b1d70;
/* rgb */ color: rgb(43, 29, 112);
/* oklch */ color: oklch(30.9% 0.135 282.8);
Tailwind
colors: {
  custom: {
    50: '#6d5a9a',
    500: '#2b1d70',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d70;
$custom-light: #6d5a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d70",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 112
  },
  "hsl": {
    "h": 250.12,
    "s": 58.865,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3085,
    "c": 0.13491,
    "h": 282.8
  },
  "luminance": 0.02562
}

Semantic roles & 50–950 ramp

primary
#2B1D70
secondary
#94A444
accent
#E246C8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2B1D70

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

Preview Lab → · Contrast checker → · Palette generator →

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