#2B138A#2B138A

#2B138A is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.5% C 0.177 H 279.3°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#2B138A
RGBrgb(43, 19, 138)
HSLhsl(252, 76%, 31%)
HSVhsv(252, 86%, 54%)
CMYKcmyk(68.8%, 86.2%, 0%, 45.9%)
CIE-LABlab(19.28, 44.94, -60.44)
CIE-LCHlch(19.28, 75.32, 306.63°)
OKLaboklab(32.46% 0.0284 -0.1745)
OKLCHoklch(32.46% 0.177 279.3)
XYZxyz(5.8151, 2.8138, 24.2765)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B138A #728A13
analogous
#13368A #2B138A #66138A
triadic
#2B138A #8A2B13 #138A2B
tetradic
#2B138A #8A1336 #728A13 #138A66
square
#2B138A #8A1336 #728A13 #138A66
split-complementary
#2B138A #8A6613 #368A13
monochromatic
#09041E #1A0C54 #2B138A #3C1AC0 #5834E3

Accessibility & contrast

On white

13.44
#2B138A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2B138A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B138A
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B138A#FFFFFF#000000##FFFFFF
##2B138A1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002A88
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b138a;
/* rgb */ color: rgb(43, 19, 138);
/* oklch */ color: oklch(32.5% 0.177 279.3);
Tailwind
colors: {
  custom: {
    50: '#7457ad',
    500: '#2b138a',
    950: '#000000',
  },
}
SCSS
$custom: #2b138a;
$custom-light: #7457ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b138a",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 138
  },
  "hsl": {
    "h": 252.101,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32462,
    "c": 0.17681,
    "h": 279.3
  },
  "luminance": 0.02814
}

Semantic roles & 50–950 ramp

primary
#2B138A
secondary
#A4BE3A
accent
#F235CC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B138A

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

Preview Lab → · Contrast checker → · Palette generator →

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