#2B113B#2B113B

#2B113B is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.080 H 310.3°. Best body text is #FFFFFF at 16.85:1 contrast (WCAG AA passes).

Color values

HEX#2B113B
RGBrgb(43, 17, 59)
HSLhsl(277, 55%, 15%)
HSVhsv(277, 71%, 23%)
CMYKcmyk(27.1%, 71.2%, 0%, 76.9%)
CIE-LABlab(10.78, 22.29, -21.78)
CIE-LCHlch(10.78, 31.16, 315.67°)
OKLaboklab(24.05% 0.0519 -0.0613)
OKLCHoklch(24.05% 0.08 310.3)
XYZxyz(1.9860, 1.2303, 4.2697)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B113B #213B11
analogous
#16113B #2B113B #3B1136
triadic
#2B113B #3B2B11 #113B2B
tetradic
#2B113B #3B1611 #213B11 #11363B
square
#2B113B #3B1611 #213B11 #11363B
split-complementary
#2B113B #363B11 #113B16
monochromatic
#110718 #110718 #2B113B #4E1F6B #702C9A

Accessibility & contrast

On white

16.85
#2B113B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B113B
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B113B#FFFFFF#000000##FFFFFF
##2B113B1.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021C3C
Deuteranopia (green-blind)
#0C1D3A
Tritanopia (blue-blind)
#291924
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2b113b;
/* rgb */ color: rgb(43, 17, 59);
/* oklch */ color: oklch(24.0% 0.080 310.3);
Tailwind
colors: {
  custom: {
    50: '#665171',
    500: '#2b113b',
    950: '#000000',
  },
}
SCSS
$custom: #2b113b;
$custom-light: #665171;
$custom-dark: #000000;
JSON
{
  "hex": "#2b113b",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 59
  },
  "hsl": {
    "h": 277.143,
    "s": 55.263,
    "l": 14.902
  },
  "oklch": {
    "l": 0.24045,
    "c": 0.08038,
    "h": 310.3
  },
  "luminance": 0.0123
}

Semantic roles & 50–950 ramp

primary
#2B113B
secondary
#4C7433
accent
#DF4982
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2B113B

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

Preview Lab → · Contrast checker → · Palette generator →

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