#2B1458#2B1458

#2B1458 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.114 H 292.6°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#2B1458
RGBrgb(43, 20, 88)
HSLhsl(260, 63%, 21%)
HSVhsv(260, 77%, 35%)
CMYKcmyk(51.1%, 77.3%, 0%, 65.5%)
CIE-LABlab(13.93, 29.12, -36.80)
CIE-LCHlch(13.93, 46.92, 308.36°)
OKLaboklab(27.1% 0.0438 -0.1055)
OKLCHoklch(27.1% 0.114 292.6)
XYZxyz(3.0074, 1.7184, 9.4039)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1458 #415814
analogous
#141F58 #2B1458 #4D1458
triadic
#2B1458 #582B14 #14582B
tetradic
#2B1458 #58141F #415814 #14584D
square
#2B1458 #58141F #415814 #14584D
split-complementary
#2B1458 #584D14 #1F5814
monochromatic
#0C0619 #130926 #2B1458 #431F8A #5C2BBC

Accessibility & contrast

On white

15.63
#2B1458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2B1458 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1458
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1458#FFFFFF#000000##FFFFFF
##2B14581.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245A
Deuteranopia (green-blind)
#002257
Tritanopia (blue-blind)
#1D2634
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b1458;
/* rgb */ color: rgb(43, 20, 88);
/* oklch */ color: oklch(27.1% 0.114 292.6);
Tailwind
colors: {
  custom: {
    50: '#6a5488',
    500: '#2b1458',
    950: '#000000',
  },
}
SCSS
$custom: #2b1458;
$custom-light: #6a5488;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1458",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 88
  },
  "hsl": {
    "h": 260.294,
    "s": 62.963,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27096,
    "c": 0.11423,
    "h": 292.6
  },
  "luminance": 0.01718
}

Semantic roles & 50–950 ramp

primary
#2B1458
secondary
#729038
accent
#E642AE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2B1458

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

Preview Lab → · Contrast checker → · Palette generator →

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