#2B103A#2B103A

#2B103A is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.8% C 0.081 H 311.4°. Best body text is #FFFFFF at 16.96:1 contrast (WCAG AA passes).

Color values

HEX#2B103A
RGBrgb(43, 16, 58)
HSLhsl(279, 57%, 15%)
HSVhsv(279, 72%, 23%)
CMYKcmyk(25.9%, 72.4%, 0%, 77.3%)
CIE-LABlab(10.48, 22.62, -21.54)
CIE-LCHlch(10.48, 31.23, 316.41°)
OKLaboklab(23.81% 0.0535 -0.0606)
OKLCHoklch(23.81% 0.081 311.4)
XYZxyz(1.9451, 1.1897, 4.1293)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B103A #1F3A10
analogous
#16103A #2B103A #3A1034
triadic
#2B103A #3A2B10 #103A2B
tetradic
#2B103A #3A1610 #1F3A10 #10343A
square
#2B103A #3A1610 #1F3A10 #10343A
split-complementary
#2B103A #343A10 #103A16
monochromatic
#120718 #120718 #2B103A #4F1D6A #722A9A

Accessibility & contrast

On white

16.96
#2B103A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B103A
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B103A#FFFFFF#000000##FFFFFF
##2B103A1.0016.961.2416.96
#FFFFFF16.961.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021B3B
Deuteranopia (green-blind)
#0C1D39
Tritanopia (blue-blind)
#291823
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2b103a;
/* rgb */ color: rgb(43, 16, 58);
/* oklch */ color: oklch(23.8% 0.081 311.4);
Tailwind
colors: {
  custom: {
    50: '#665070',
    500: '#2b103a',
    950: '#000000',
  },
}
SCSS
$custom: #2b103a;
$custom-light: #665070;
$custom-dark: #000000;
JSON
{
  "hex": "#2b103a",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 58
  },
  "hsl": {
    "h": 278.571,
    "s": 56.757,
    "l": 14.51
  },
  "oklch": {
    "l": 0.23805,
    "c": 0.08084,
    "h": 311.4
  },
  "luminance": 0.0119
}

Semantic roles & 50–950 ramp

primary
#2B103A
secondary
#497432
accent
#E0487E
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2B103A

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

Preview Lab → · Contrast checker → · Palette generator →

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