#2B103B#2B103B

#2B103B is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.082 H 310.6°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#2B103B
RGBrgb(43, 16, 59)
HSLhsl(278, 57%, 15%)
HSVhsv(278, 73%, 23%)
CMYKcmyk(27.1%, 72.9%, 0%, 76.9%)
CIE-LABlab(10.56, 22.89, -22.13)
CIE-LCHlch(10.56, 31.84, 315.97°)
OKLaboklab(23.88% 0.0534 -0.0624)
OKLCHoklch(23.88% 0.082 310.6)
XYZxyz(1.9708, 1.2000, 4.2646)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B103B #203B10
analogous
#15103B #2B103B #3B1036
triadic
#2B103B #3B2B10 #103B2B
tetradic
#2B103B #3B1510 #203B10 #10363B
square
#2B103B #3B1510 #203B10 #10363B
split-complementary
#2B103B #363B10 #103B15
monochromatic
#120718 #120718 #2B103B #4E1D6B #712A9B

Accessibility & contrast

On white

16.94
#2B103B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2B103B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B103B
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B103B#FFFFFF#000000##FFFFFF
##2B103B1.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011B3C
Deuteranopia (green-blind)
#0B1D3A
Tritanopia (blue-blind)
#291823
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2b103b;
/* rgb */ color: rgb(43, 16, 59);
/* oklch */ color: oklch(23.9% 0.082 310.6);
Tailwind
colors: {
  custom: {
    50: '#665071',
    500: '#2b103b',
    950: '#000000',
  },
}
SCSS
$custom: #2b103b;
$custom-light: #665071;
$custom-dark: #000000;
JSON
{
  "hex": "#2b103b",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 59
  },
  "hsl": {
    "h": 277.674,
    "s": 57.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23884,
    "c": 0.08213,
    "h": 310.6
  },
  "luminance": 0.012
}

Semantic roles & 50–950 ramp

primary
#2B103B
secondary
#4B7532
accent
#E14780
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2B103B

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

Preview Lab → · Contrast checker → · Palette generator →

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