#2B114C#2B114C

#2B114C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.103 H 299.1°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#2B114C
RGBrgb(43, 17, 76)
HSLhsl(266, 63%, 18%)
HSVhsv(266, 78%, 30%)
CMYKcmyk(43.4%, 77.6%, 0%, 70.2%)
CIE-LABlab(12.20, 27.18, -31.43)
CIE-LCHlch(12.20, 41.55, 310.84°)
OKLaboklab(25.51% 0.0499 -0.0897)
OKLCHoklch(25.51% 0.103 299.1)
XYZxyz(2.5009, 1.4363, 6.9815)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B114C #324C11
analogous
#11144C #2B114C #48114C
triadic
#2B114C #4C2B11 #114C2B
tetradic
#2B114C #4C1114 #324C11 #114C48
square
#2B114C #4C1114 #324C11 #114C48
split-complementary
#2B114C #4C4811 #144C11
monochromatic
#0E0619 #0F061A #2B114C #471C7E #6427B0

Accessibility & contrast

On white

16.31
#2B114C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2B114C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B114C
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B114C#FFFFFF#000000##FFFFFF
##2B114C1.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#231F2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b114c;
/* rgb */ color: rgb(43, 17, 76);
/* oklch */ color: oklch(25.5% 0.103 299.1);
Tailwind
colors: {
  custom: {
    50: '#68517f',
    500: '#2b114c',
    950: '#000000',
  },
}
SCSS
$custom: #2b114c;
$custom-light: #68517f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b114c",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 76
  },
  "hsl": {
    "h": 266.441,
    "s": 63.441,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25512,
    "c": 0.10264,
    "h": 299.1
  },
  "luminance": 0.01436
}

Semantic roles & 50–950 ramp

primary
#2B114C
secondary
#618533
accent
#E6419E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B114C

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

Preview Lab → · Contrast checker → · Palette generator →

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