#2B1B74#2B1B74

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

Color values

HEX#2B1B74
RGBrgb(43, 27, 116)
HSLhsl(251, 62%, 28%)
HSVhsv(251, 77%, 45%)
CMYKcmyk(62.9%, 76.7%, 0%, 54.5%)
CIE-LABlab(18.18, 34.09, -48.29)
CIE-LCHlch(18.18, 59.10, 305.22°)
OKLaboklab(30.96% 0.0306 -0.1392)
OKLCHoklch(30.96% 0.143 282.4)
XYZxyz(4.5396, 2.5581, 16.7742)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B74 #64741B
analogous
#1B3774 #2B1B74 #581B74
triadic
#2B1B74 #742B1B #1B742B
tetradic
#2B1B74 #741B37 #64741B #1B7458
square
#2B1B74 #741B37 #64741B #1B7458
split-complementary
#2B1B74 #74581B #37741B
monochromatic
#090619 #190F42 #2B1B74 #3D27A6 #5439D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B1B74#FFFFFF#000000##FFFFFF
##2B1B741.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)
#002F77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b1b74;
/* rgb */ color: rgb(43, 27, 116);
/* oklch */ color: oklch(31.0% 0.143 282.4);
Tailwind
colors: {
  custom: {
    50: '#6e599d',
    500: '#2b1b74',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b74;
$custom-light: #6e599d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b74",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 250.787,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30961,
    "c": 0.14252,
    "h": 282.4
  },
  "luminance": 0.02558
}

Semantic roles & 50–950 ramp

primary
#2B1B74
secondary
#96A942
accent
#E542C8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2B1B74

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

Preview Lab → · Contrast checker → · Palette generator →

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