#2B1B72#2B1B72

#2B1B72 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.140 H 282.8°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#2B1B72
RGBrgb(43, 27, 114)
HSLhsl(251, 62%, 28%)
HSVhsv(251, 76%, 45%)
CMYKcmyk(62.3%, 76.3%, 0%, 55.3%)
CIE-LABlab(17.97, 33.43, -47.33)
CIE-LCHlch(17.97, 57.95, 305.23°)
OKLaboklab(30.75% 0.0311 -0.1364)
OKLCHoklch(30.75% 0.14 282.8)
XYZxyz(4.4245, 2.5121, 16.1681)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B72 #62721B
analogous
#1B3772 #2B1B72 #561B72
triadic
#2B1B72 #722B1B #1B722B
tetradic
#2B1B72 #721B37 #62721B #1B7256
square
#2B1B72 #721B37 #62721B #1B7256
split-complementary
#2B1B72 #72561B #37721B
monochromatic
#090619 #180F41 #2B1B72 #3E27A3 #5438D0

Accessibility & contrast

On white

13.98
#2B1B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2B1B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B72
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B72#FFFFFF#000000##FFFFFF
##2B1B721.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b1b72;
/* rgb */ color: rgb(43, 27, 114);
/* oklch */ color: oklch(30.8% 0.140 282.8);
Tailwind
colors: {
  custom: {
    50: '#6e599b',
    500: '#2b1b72',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b72;
$custom-light: #6e599b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b72",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 251.034,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30753,
    "c": 0.13991,
    "h": 282.8
  },
  "luminance": 0.02512
}

Semantic roles & 50–950 ramp

primary
#2B1B72
secondary
#94A742
accent
#E543C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2B1B72

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

Preview Lab → · Contrast checker → · Palette generator →

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