#2B123B#2B123B

#2B123B is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.2% C 0.079 H 309.9°. Best body text is #FFFFFF at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#2B123B
RGBrgb(43, 18, 59)
HSLhsl(277, 53%, 15%)
HSVhsv(277, 69%, 23%)
CMYKcmyk(27.1%, 69.5%, 0%, 76.9%)
CIE-LABlab(11.01, 21.67, -21.41)
CIE-LCHlch(11.01, 30.46, 315.34°)
OKLaboklab(24.21% 0.0504 -0.0603)
OKLCHoklch(24.21% 0.079 309.9)
XYZxyz(2.0018, 1.2620, 4.2750)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B123B #223B12
analogous
#16123B #2B123B #3B1237
triadic
#2B123B #3B2B12 #123B2B
tetradic
#2B123B #3B1612 #223B12 #12373B
square
#2B123B #3B1612 #223B12 #12373B
split-complementary
#2B123B #373B12 #123B16
monochromatic
#110717 #110717 #2B123B #4D206A #6F2F99

Accessibility & contrast

On white

16.77
#2B123B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2B123B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B123B
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B123B#FFFFFF#000000##FFFFFF
##2B123B1.0016.771.2516.77
#FFFFFF16.771.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041C3C
Deuteranopia (green-blind)
#0D1E3A
Tritanopia (blue-blind)
#291A24
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2b123b;
/* rgb */ color: rgb(43, 18, 59);
/* oklch */ color: oklch(24.2% 0.079 309.9);
Tailwind
colors: {
  custom: {
    50: '#665171',
    500: '#2b123b',
    950: '#000000',
  },
}
SCSS
$custom: #2b123b;
$custom-light: #665171;
$custom-dark: #000000;
JSON
{
  "hex": "#2b123b",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 59
  },
  "hsl": {
    "h": 276.585,
    "s": 53.247,
    "l": 15.098
  },
  "oklch": {
    "l": 0.2421,
    "c": 0.07858,
    "h": 309.9
  },
  "luminance": 0.01262
}

Semantic roles & 50–950 ramp

primary
#2B123B
secondary
#4D7435
accent
#DD4B84
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2B123B

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

Preview Lab → · Contrast checker → · Palette generator →

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