#2B124C#2B124C

#2B124C is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.101 H 298.7°. Best body text is #FFFFFF at 16.23:1 contrast (WCAG AA passes).

Color values

HEX#2B124C
RGBrgb(43, 18, 76)
HSLhsl(266, 62%, 18%)
HSVhsv(266, 76%, 30%)
CMYKcmyk(43.4%, 76.3%, 0%, 70.2%)
CIE-LABlab(12.40, 26.60, -31.10)
CIE-LCHlch(12.40, 40.92, 310.54°)
OKLaboklab(25.66% 0.0487 -0.0887)
OKLCHoklch(25.66% 0.101 298.7)
XYZxyz(2.5167, 1.4680, 6.9868)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B124C #334C12
analogous
#12164C #2B124C #48124C
triadic
#2B124C #4C2B12 #124C2B
tetradic
#2B124C #4C1216 #334C12 #124C48
square
#2B124C #4C1216 #334C12 #124C48
split-complementary
#2B124C #4C4812 #164C12
monochromatic
#0E0619 #0F061B #2B124C #471E7D #6329AF

Accessibility & contrast

On white

16.23
#2B124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B124C
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B124C#FFFFFF#000000##FFFFFF
##2B124C1.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#23202D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b124c;
/* rgb */ color: rgb(43, 18, 76);
/* oklch */ color: oklch(25.7% 0.101 298.7);
Tailwind
colors: {
  custom: {
    50: '#68527f',
    500: '#2b124c',
    950: '#000000',
  },
}
SCSS
$custom: #2b124c;
$custom-light: #68527f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b124c",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 265.862,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25659,
    "c": 0.10121,
    "h": 298.7
  },
  "luminance": 0.01468
}

Semantic roles & 50–950 ramp

primary
#2B124C
secondary
#628535
accent
#E5439F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B124C

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

Preview Lab → · Contrast checker → · Palette generator →

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