#2B1B73#2B1B73

#2B1B73 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.141 H 282.6°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#2B1B73
RGBrgb(43, 27, 115)
HSLhsl(251, 62%, 28%)
HSVhsv(251, 77%, 45%)
CMYKcmyk(62.6%, 76.5%, 0%, 54.9%)
CIE-LABlab(18.08, 33.76, -47.81)
CIE-LCHlch(18.08, 58.53, 305.22°)
OKLaboklab(30.86% 0.0309 -0.1378)
OKLCHoklch(30.86% 0.141 282.6)
XYZxyz(4.4817, 2.5350, 16.4695)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B73 #63731B
analogous
#1B3773 #2B1B73 #571B73
triadic
#2B1B73 #732B1B #1B732B
tetradic
#2B1B73 #731B37 #63731B #1B7357
square
#2B1B73 #731B37 #63731B #1B7357
split-complementary
#2B1B73 #73571B #37731B
monochromatic
#090619 #180F41 #2B1B73 #3E27A5 #5438D0

Accessibility & contrast

On white

13.93
#2B1B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1B73
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B73#FFFFFF#000000##FFFFFF
##2B1B731.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1b73;
/* rgb */ color: rgb(43, 27, 115);
/* oklch */ color: oklch(30.9% 0.141 282.6);
Tailwind
colors: {
  custom: {
    50: '#6e599c',
    500: '#2b1b73',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b73;
$custom-light: #6e599c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b73",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 115
  },
  "hsl": {
    "h": 250.909,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30857,
    "c": 0.14121,
    "h": 282.6
  },
  "luminance": 0.02535
}

Semantic roles & 50–950 ramp

primary
#2B1B73
secondary
#95A842
accent
#E543C8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2B1B73

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

Preview Lab → · Contrast checker → · Palette generator →

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