#2B114A#2B114A

#2B114A is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.100 H 300.2°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#2B114A
RGBrgb(43, 17, 74)
HSLhsl(267, 63%, 18%)
HSVhsv(267, 77%, 29%)
CMYKcmyk(41.9%, 77%, 0%, 71%)
CIE-LABlab(12.02, 26.58, -30.34)
CIE-LCHlch(12.02, 40.34, 311.22°)
OKLaboklab(25.33% 0.0503 -0.0865)
OKLCHoklch(25.33% 0.1 300.2)
XYZxyz(2.4324, 1.4089, 6.6210)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B114A #304A11
analogous
#11144A #2B114A #47114A
triadic
#2B114A #4A2B11 #114A2B
tetradic
#2B114A #4A1114 #304A11 #114A47
square
#2B114A #4A1114 #304A11 #114A47
split-complementary
#2B114A #4A4711 #144A11
monochromatic
#0E0619 #0E0619 #2B114A #481C7C #6528AE

Accessibility & contrast

On white

16.38
#2B114A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B114A
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B114A#FFFFFF#000000##FFFFFF
##2B114A1.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#001F49
Tritanopia (blue-blind)
#241F2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b114a;
/* rgb */ color: rgb(43, 17, 74);
/* oklch */ color: oklch(25.3% 0.100 300.2);
Tailwind
colors: {
  custom: {
    50: '#68517d',
    500: '#2b114a',
    950: '#000000',
  },
}
SCSS
$custom: #2b114a;
$custom-light: #68517d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b114a",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 74
  },
  "hsl": {
    "h": 267.368,
    "s": 62.637,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25327,
    "c": 0.10005,
    "h": 300.2
  },
  "luminance": 0.01409
}

Semantic roles & 50–950 ramp

primary
#2B114A
secondary
#5F8333
accent
#E6429B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B114A

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

Preview Lab → · Contrast checker → · Palette generator →

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