#2B1C74#2B1C74

#2B1C74 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.141 H 282.2°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#2B1C74
RGBrgb(43, 28, 116)
HSLhsl(250, 61%, 28%)
HSVhsv(250, 76%, 45%)
CMYKcmyk(62.9%, 75.9%, 0%, 54.5%)
CIE-LABlab(18.39, 33.51, -47.95)
CIE-LCHlch(18.39, 58.49, 304.95°)
OKLaboklab(31.11% 0.0298 -0.1382)
OKLCHoklch(31.11% 0.141 282.2)
XYZxyz(4.5629, 2.6047, 16.7819)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1C74 #65741C
analogous
#1C3974 #2B1C74 #571C74
triadic
#2B1C74 #742B1C #1C742B
tetradic
#2B1C74 #741C39 #65741C #1C7457
square
#2B1C74 #741C39 #65741C #1C7457
split-complementary
#2B1C74 #74571C #39741C
monochromatic
#090619 #191043 #2B1C74 #3D28A5 #543BD0

Accessibility & contrast

On white

13.81
#2B1C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2B1C74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1C74
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1C74#FFFFFF#000000##FFFFFF
##2B1C741.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002A72
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b1c74;
/* rgb */ color: rgb(43, 28, 116);
/* oklch */ color: oklch(31.1% 0.141 282.2);
Tailwind
colors: {
  custom: {
    50: '#6e5a9d',
    500: '#2b1c74',
    950: '#000000',
  },
}
SCSS
$custom: #2b1c74;
$custom-light: #6e5a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1c74",
  "rgb": {
    "r": 43,
    "g": 28,
    "b": 116
  },
  "hsl": {
    "h": 250.227,
    "s": 61.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31107,
    "c": 0.14139,
    "h": 282.2
  },
  "luminance": 0.02605
}

Semantic roles & 50–950 ramp

primary
#2B1C74
secondary
#97A843
accent
#E444C9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2B1C74

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

Preview Lab → · Contrast checker → · Palette generator →

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