#2B125D#2B125D

#2B125D is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.123 H 291.2°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#2B125D
RGBrgb(43, 18, 93)
HSLhsl(260, 68%, 22%)
HSVhsv(260, 81%, 36%)
CMYKcmyk(53.8%, 80.6%, 0%, 63.5%)
CIE-LABlab(14.04, 31.77, -39.99)
CIE-LCHlch(14.04, 51.07, 308.47°)
OKLaboklab(27.32% 0.0445 -0.1148)
OKLCHoklch(27.32% 0.123 291.2)
XYZxyz(3.1878, 1.7364, 10.5210)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B125D #445D12
analogous
#121F5D #2B125D #51125D
triadic
#2B125D #5D2B12 #125D2B
tetradic
#2B125D #5D121F #445D12 #125D51
square
#2B125D #5D121F #445D12 #125D51
split-complementary
#2B125D #5D5112 #1F5D12
monochromatic
#0C051A #13082A #2B125D #431C90 #5A26C4

Accessibility & contrast

On white

15.59
#2B125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2B125D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B125D
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B125D#FFFFFF#000000##FFFFFF
##2B125D1.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00225C
Tritanopia (blue-blind)
#1A2737
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b125d;
/* rgb */ color: rgb(43, 18, 93);
/* oklch */ color: oklch(27.3% 0.123 291.2);
Tailwind
colors: {
  custom: {
    50: '#6b538c',
    500: '#2b125d',
    950: '#000000',
  },
}
SCSS
$custom: #2b125d;
$custom-light: #6b538c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b125d",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 260,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27322,
    "c": 0.12314,
    "h": 291.2
  },
  "luminance": 0.01737
}

Semantic roles & 50–950 ramp

primary
#2B125D
secondary
#759535
accent
#EA3DB1
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B125D

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

Preview Lab → · Contrast checker → · Palette generator →

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