#2B1A67#2B1A67

#2B1A67 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.127 H 285.8°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#2B1A67
RGBrgb(43, 26, 103)
HSLhsl(253, 60%, 25%)
HSVhsv(253, 75%, 40%)
CMYKcmyk(58.3%, 74.8%, 0%, 59.6%)
CIE-LABlab(16.66, 30.40, -42.33)
CIE-LCHlch(16.66, 52.11, 305.69°)
OKLaboklab(29.48% 0.0345 -0.1217)
OKLCHoklch(29.48% 0.127 285.8)
XYZxyz(3.8131, 2.2314, 13.0591)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A67 #56671A
analogous
#1A2F67 #2B1A67 #511A67
triadic
#2B1A67 #672B1A #1A672B
tetradic
#2B1A67 #671A2F #56671A #1A6751
square
#2B1A67 #671A2F #56671A #1A6751
split-complementary
#2B1A67 #67511A #2F671A
monochromatic
#0A0618 #170E36 #2B1A67 #3F2698 #5433C9

Accessibility & contrast

On white

14.52
#2B1A67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2B1A67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A67
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A67#FFFFFF#000000##FFFFFF
##2B1A671.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B69
Deuteranopia (green-blind)
#002766
Tritanopia (blue-blind)
#102E3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b1a67;
/* rgb */ color: rgb(43, 26, 103);
/* oklch */ color: oklch(29.5% 0.127 285.8);
Tailwind
colors: {
  custom: {
    50: '#6c5893',
    500: '#2b1a67',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a67;
$custom-light: #6c5893;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a67",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 103
  },
  "hsl": {
    "h": 253.247,
    "s": 59.69,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29482,
    "c": 0.12653,
    "h": 285.8
  },
  "luminance": 0.02232
}

Semantic roles & 50–950 ramp

primary
#2B1A67
secondary
#889D40
accent
#E345C0
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1A67

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

Preview Lab → · Contrast checker → · Palette generator →

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