#2B1D5E#2B1D5E

#2B1D5E is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.1% C 0.110 H 287.4°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#2B1D5E
RGBrgb(43, 29, 94)
HSLhsl(253, 53%, 24%)
HSVhsv(253, 69%, 37%)
CMYKcmyk(54.3%, 69.1%, 0%, 63.1%)
CIE-LABlab(16.51, 25.53, -36.62)
CIE-LCHlch(16.51, 44.64, 304.88°)
OKLaboklab(29.11% 0.0329 -0.105)
OKLCHoklch(29.11% 0.11 287.4)
XYZxyz(3.4554, 2.2003, 10.8301)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D5E #505E1D
analogous
#1D305E #2B1D5E #4C1D5E
triadic
#2B1D5E #5E2B1D #1D5E2B
tetradic
#2B1D5E #5E1D30 #505E1D #1D5E4C
square
#2B1D5E #5E1D30 #505E1D #1D5E4C
split-complementary
#2B1D5E #5E4C1D #305E1D
monochromatic
#0B0717 #160F2F #2B1D5E #402B8D #563ABC

Accessibility & contrast

On white

14.58
#2B1D5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2B1D5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1D5E
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D5E#FFFFFF#000000##FFFFFF
##2B1D5E1.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#00275D
Tritanopia (blue-blind)
#182D3A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b1d5e;
/* rgb */ color: rgb(43, 29, 94);
/* oklch */ color: oklch(29.1% 0.110 287.4);
Tailwind
colors: {
  custom: {
    50: '#6a5a8c',
    500: '#2b1d5e',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d5e;
$custom-light: #6a5a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d5e",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 94
  },
  "hsl": {
    "h": 252.923,
    "s": 52.846,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29112,
    "c": 0.11003,
    "h": 287.4
  },
  "luminance": 0.022
}

Semantic roles & 50–950 ramp

primary
#2B1D5E
secondary
#829344
accent
#DC4CBD
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2B1D5E

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

Preview Lab → · Contrast checker → · Palette generator →

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