#2B114B#2B114B

#2B114B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.101 H 299.6°. Best body text is #FFFFFF at 16.35:1 contrast (WCAG AA passes).

Color values

HEX#2B114B
RGBrgb(43, 17, 75)
HSLhsl(267, 63%, 18%)
HSVhsv(267, 77%, 29%)
CMYKcmyk(42.7%, 77.3%, 0%, 70.6%)
CIE-LABlab(12.11, 26.88, -30.89)
CIE-LCHlch(12.11, 40.95, 311.03°)
OKLaboklab(25.42% 0.0501 -0.0881)
OKLCHoklch(25.42% 0.101 299.6)
XYZxyz(2.4664, 1.4225, 6.7999)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B114B #314B11
analogous
#11144B #2B114B #48114B
triadic
#2B114B #4B2B11 #114B2B
tetradic
#2B114B #4B1114 #314B11 #114B48
square
#2B114B #4B1114 #314B11 #114B48
split-complementary
#2B114B #4B4811 #144B11
monochromatic
#0E0619 #0E0619 #2B114B #481C7D #6428AF

Accessibility & contrast

On white

16.35
#2B114B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2B114B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B114B
16.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B114B#FFFFFF#000000##FFFFFF
##2B114B1.0016.351.2816.35
#FFFFFF16.351.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#001F4A
Tritanopia (blue-blind)
#241F2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b114b;
/* rgb */ color: rgb(43, 17, 75);
/* oklch */ color: oklch(25.4% 0.101 299.6);
Tailwind
colors: {
  custom: {
    50: '#68517e',
    500: '#2b114b',
    950: '#000000',
  },
}
SCSS
$custom: #2b114b;
$custom-light: #68517e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b114b",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 75
  },
  "hsl": {
    "h": 266.897,
    "s": 63.043,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25419,
    "c": 0.10134,
    "h": 299.6
  },
  "luminance": 0.01422
}

Semantic roles & 50–950 ramp

primary
#2B114B
secondary
#608433
accent
#E6429C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B114B

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

Preview Lab → · Contrast checker → · Palette generator →

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