#2B128C#2B128C

#2B128C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.6% C 0.180 H 279.0°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#2B128C
RGBrgb(43, 18, 140)
HSLhsl(252, 77%, 31%)
HSVhsv(252, 87%, 55%)
CMYKcmyk(69.3%, 87.1%, 0%, 45.1%)
CIE-LABlab(19.39, 45.94, -61.52)
CIE-LCHlch(19.39, 76.78, 306.75°)
OKLaboklab(32.61% 0.0281 -0.1776)
OKLCHoklch(32.61% 0.18 279)
XYZxyz(5.9447, 2.8391, 25.0406)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B128C #738C12
analogous
#12368C #2B128C #68128C
triadic
#2B128C #8C2B12 #128C2B
tetradic
#2B128C #8C1236 #738C12 #128C68
square
#2B128C #8C1236 #738C12 #128C68
split-complementary
#2B128C #8C6812 #368C12
monochromatic
#0A0420 #1A0B56 #2B128C #3C19C2 #5834E5

Accessibility & contrast

On white

13.39
#2B128C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2B128C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B128C
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B128C#FFFFFF#000000##FFFFFF
##2B128C1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#002A8A
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b128c;
/* rgb */ color: rgb(43, 18, 140);
/* oklch */ color: oklch(32.6% 0.180 279.0);
Tailwind
colors: {
  custom: {
    50: '#7456af',
    500: '#2b128c',
    950: '#000000',
  },
}
SCSS
$custom: #2b128c;
$custom-light: #7456af;
$custom-dark: #000000;
JSON
{
  "hex": "#2b128c",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 140
  },
  "hsl": {
    "h": 252.295,
    "s": 77.215,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32605,
    "c": 0.17983,
    "h": 279
  },
  "luminance": 0.0284
}

Semantic roles & 50–950 ramp

primary
#2B128C
secondary
#A5C039
accent
#F434CC
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2B128C

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

Preview Lab → · Contrast checker → · Palette generator →

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