#2B1370#2B1370

#2B1370 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.5% C 0.146 H 284.9°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#2B1370
RGBrgb(43, 19, 112)
HSLhsl(255, 71%, 26%)
HSVhsv(255, 83%, 44%)
CMYKcmyk(61.6%, 83%, 0%, 56.1%)
CIE-LABlab(16.25, 37.10, -48.87)
CIE-LCHlch(16.25, 61.36, 307.20°)
OKLaboklab(29.48% 0.0376 -0.1408)
OKLCHoklch(29.48% 0.146 284.9)
XYZxyz(4.1529, 2.1489, 15.5220)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1370 #587013
analogous
#132970 #2B1370 #591370
triadic
#2B1370 #702B13 #13702B
tetradic
#2B1370 #701329 #587013 #137059
square
#2B1370 #701329 #587013 #137059
split-complementary
#2B1370 #705913 #297013
monochromatic
#0A041A #170A3C #2B1370 #3F1CA4 #5325D9

Accessibility & contrast

On white

14.69
#2B1370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2B1370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1370
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1370#FFFFFF#000000##FFFFFF
##2B13701.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1370;
/* rgb */ color: rgb(43, 19, 112);
/* oklch */ color: oklch(29.5% 0.146 284.9);
Tailwind
colors: {
  custom: {
    50: '#6e559a',
    500: '#2b1370',
    950: '#000000',
  },
}
SCSS
$custom: #2b1370;
$custom-light: #6e559a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1370",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 112
  },
  "hsl": {
    "h": 255.484,
    "s": 70.992,
    "l": 25.686
  },
  "oklch": {
    "l": 0.2948,
    "c": 0.14576,
    "h": 284.9
  },
  "luminance": 0.02149
}

Semantic roles & 50–950 ramp

primary
#2B1370
secondary
#8AA738
accent
#EE3ABF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1370

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

Preview Lab → · Contrast checker → · Palette generator →

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