#2B114D#2B114D

#2B114D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.104 H 298.5°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#2B114D
RGBrgb(43, 17, 77)
HSLhsl(266, 64%, 18%)
HSVhsv(266, 78%, 30%)
CMYKcmyk(44.2%, 77.9%, 0%, 69.8%)
CIE-LABlab(12.29, 27.47, -31.98)
CIE-LCHlch(12.29, 42.16, 310.67°)
OKLaboklab(25.61% 0.0496 -0.0913)
OKLCHoklch(25.61% 0.104 298.5)
XYZxyz(2.5359, 1.4503, 7.1661)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B114D #334D11
analogous
#11154D #2B114D #49114D
triadic
#2B114D #4D2B11 #114D2B
tetradic
#2B114D #4D1115 #334D11 #114D49
square
#2B114D #4D1115 #334D11 #114D49
split-complementary
#2B114D #4D4911 #154D11
monochromatic
#0E0619 #0F061B #2B114D #471C7F #6327B1

Accessibility & contrast

On white

16.28
#2B114D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B114D
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B114D#FFFFFF#000000##FFFFFF
##2B114D1.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#001F4C
Tritanopia (blue-blind)
#23202D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b114d;
/* rgb */ color: rgb(43, 17, 77);
/* oklch */ color: oklch(25.6% 0.104 298.5);
Tailwind
colors: {
  custom: {
    50: '#68517f',
    500: '#2b114d',
    950: '#000000',
  },
}
SCSS
$custom: #2b114d;
$custom-light: #68517f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b114d",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 77
  },
  "hsl": {
    "h": 266,
    "s": 63.83,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25606,
    "c": 0.10393,
    "h": 298.5
  },
  "luminance": 0.0145
}

Semantic roles & 50–950 ramp

primary
#2B114D
secondary
#628633
accent
#E7419F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B114D

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

Preview Lab → · Contrast checker → · Palette generator →

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