#2B1658#2B1658

#2B1658 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.112 H 292.0°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#2B1658
RGBrgb(43, 22, 88)
HSLhsl(259, 60%, 22%)
HSVhsv(259, 75%, 35%)
CMYKcmyk(51.1%, 75%, 0%, 65.5%)
CIE-LABlab(14.35, 27.95, -36.11)
CIE-LCHlch(14.35, 45.66, 307.74°)
OKLaboklab(27.4% 0.0417 -0.1035)
OKLCHoklch(27.4% 0.112 292)
XYZxyz(3.0441, 1.7919, 9.4161)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1658 #435816
analogous
#162258 #2B1658 #4C1658
triadic
#2B1658 #582B16 #16582B
tetradic
#2B1658 #581622 #435816 #16584C
square
#2B1658 #581622 #435816 #16584C
split-complementary
#2B1658 #584C16 #225816
monochromatic
#0C0618 #130A27 #2B1658 #432289 #5B2EBA

Accessibility & contrast

On white

15.46
#2B1658 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2B1658 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1658
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1658#FFFFFF#000000##FFFFFF
##2B16581.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002357
Tritanopia (blue-blind)
#1D2735
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b1658;
/* rgb */ color: rgb(43, 22, 88);
/* oklch */ color: oklch(27.4% 0.112 292.0);
Tailwind
colors: {
  custom: {
    50: '#695588',
    500: '#2b1658',
    950: '#000000',
  },
}
SCSS
$custom: #2b1658;
$custom-light: #695588;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1658",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 88
  },
  "hsl": {
    "h": 259.091,
    "s": 60,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27395,
    "c": 0.11157,
    "h": 292
  },
  "luminance": 0.01792
}

Semantic roles & 50–950 ramp

primary
#2B1658
secondary
#748F3B
accent
#E345B1
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2B1658

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

Preview Lab → · Contrast checker → · Palette generator →

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