#2B1470#2B1470

#2B1470 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.145 H 284.8°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#2B1470
RGBrgb(43, 20, 112)
HSLhsl(255, 70%, 26%)
HSVhsv(255, 82%, 44%)
CMYKcmyk(61.6%, 82.1%, 0%, 56.1%)
CIE-LABlab(16.42, 36.60, -48.59)
CIE-LCHlch(16.42, 60.83, 306.99°)
OKLaboklab(29.6% 0.0369 -0.14)
OKLCHoklch(29.6% 0.145 284.8)
XYZxyz(4.1702, 2.1835, 15.5278)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1470 #597014
analogous
#142B70 #2B1470 #591470
triadic
#2B1470 #702B14 #14702B
tetradic
#2B1470 #70142B #597014 #147059
square
#2B1470 #70142B #597014 #147059
split-complementary
#2B1470 #705914 #2B7014
monochromatic
#0A051A #170B3C #2B1470 #3F1DA4 #5327D8

Accessibility & contrast

On white

14.62
#2B1470 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1470
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1470#FFFFFF#000000##FFFFFF
##2B14701.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B73
Deuteranopia (green-blind)
#00266E
Tritanopia (blue-blind)
#032F42
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b1470;
/* rgb */ color: rgb(43, 20, 112);
/* oklch */ color: oklch(29.6% 0.145 284.8);
Tailwind
colors: {
  custom: {
    50: '#6e559a',
    500: '#2b1470',
    950: '#000000',
  },
}
SCSS
$custom: #2b1470;
$custom-light: #6e559a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1470",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 112
  },
  "hsl": {
    "h": 255,
    "s": 69.697,
    "l": 25.882
  },
  "oklch": {
    "l": 0.296,
    "c": 0.1448,
    "h": 284.8
  },
  "luminance": 0.02184
}

Semantic roles & 50–950 ramp

primary
#2B1470
secondary
#8BA639
accent
#ED3BC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1470

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

Preview Lab → · Contrast checker → · Palette generator →

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