#2B1462#2B1462

#2B1462 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.127 H 288.9°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#2B1462
RGBrgb(43, 20, 98)
HSLhsl(258, 66%, 23%)
HSVhsv(258, 80%, 38%)
CMYKcmyk(56.1%, 79.6%, 0%, 61.6%)
CIE-LABlab(14.93, 32.24, -41.86)
CIE-LCHlch(14.93, 52.83, 307.60°)
OKLaboklab(28.11% 0.0412 -0.1203)
OKLCHoklch(28.11% 0.127 288.9)
XYZxyz(3.4504, 1.8956, 11.7370)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1462 #4B6214
analogous
#142462 #2B1462 #521462
triadic
#2B1462 #622B14 #14622B
tetradic
#2B1462 #621424 #4B6214 #146252
square
#2B1462 #621424 #4B6214 #146252
split-complementary
#2B1462 #625214 #246214
monochromatic
#0B0519 #150A2F #2B1462 #411E95 #5829C8

Accessibility & contrast

On white

15.23
#2B1462 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2B1462 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1462
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1462#FFFFFF#000000##FFFFFF
##2B14621.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002764
Deuteranopia (green-blind)
#002461
Tritanopia (blue-blind)
#16293A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b1462;
/* rgb */ color: rgb(43, 20, 98);
/* oklch */ color: oklch(28.1% 0.127 288.9);
Tailwind
colors: {
  custom: {
    50: '#6b548f',
    500: '#2b1462',
    950: '#000000',
  },
}
SCSS
$custom: #2b1462;
$custom-light: #6b548f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1462",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 98
  },
  "hsl": {
    "h": 257.692,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28105,
    "c": 0.12719,
    "h": 288.9
  },
  "luminance": 0.01896
}

Semantic roles & 50–950 ramp

primary
#2B1462
secondary
#7D9938
accent
#E93FB7
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B1462

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

Preview Lab → · Contrast checker → · Palette generator →

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