#2B1174#2B1174

#2B1174 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.152 H 284.2°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#2B1174
RGBrgb(43, 17, 116)
HSLhsl(256, 74%, 26%)
HSVhsv(256, 85%, 45%)
CMYKcmyk(62.9%, 85.3%, 0%, 54.5%)
CIE-LABlab(16.38, 39.25, -51.25)
CIE-LCHlch(16.38, 64.55, 307.45°)
OKLaboklab(29.71% 0.0374 -0.1477)
OKLCHoklch(29.71% 0.152 284.2)
XYZxyz(4.3481, 2.1752, 16.7103)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1174 #5A7411
analogous
#112874 #2B1174 #5C1174
triadic
#2B1174 #742B11 #11742B
tetradic
#2B1174 #741128 #5A7411 #11745C
square
#2B1174 #741128 #5A7411 #11745C
split-complementary
#2B1174 #745C11 #287411
monochromatic
#0A041B #17093F #2B1174 #3F19A9 #5321DE

Accessibility & contrast

On white

14.63
#2B1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2B1174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1174
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1174#FFFFFF#000000##FFFFFF
##2B11741.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B77
Deuteranopia (green-blind)
#002572
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b1174;
/* rgb */ color: rgb(43, 17, 116);
/* oklch */ color: oklch(29.7% 0.152 284.2);
Tailwind
colors: {
  custom: {
    50: '#6f549d',
    500: '#2b1174',
    950: '#000000',
  },
}
SCSS
$custom: #2b1174;
$custom-light: #6f549d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1174",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 255.758,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29705,
    "c": 0.1524,
    "h": 284.2
  },
  "luminance": 0.02175
}

Semantic roles & 50–950 ramp

primary
#2B1174
secondary
#8CAB36
accent
#F137C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1174

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

Preview Lab → · Contrast checker → · Palette generator →

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