#2B125B#2B125B

#2B125B is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.121 H 291.9°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#2B125B
RGBrgb(43, 18, 91)
HSLhsl(261, 67%, 21%)
HSVhsv(261, 80%, 36%)
CMYKcmyk(52.7%, 80.2%, 0%, 64.3%)
CIE-LABlab(13.84, 31.16, -38.98)
CIE-LCHlch(13.84, 49.90, 308.64°)
OKLaboklab(27.12% 0.045 -0.1119)
OKLCHoklch(27.12% 0.121 291.9)
XYZxyz(3.1004, 1.7014, 10.0606)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B125B #425B12
analogous
#121E5B #2B125B #50125B
triadic
#2B125B #5B2B12 #125B2B
tetradic
#2B125B #5B121E #425B12 #125B50
square
#2B125B #5B121E #425B12 #125B50
split-complementary
#2B125B #5B5012 #1E5B12
monochromatic
#0C051A #130828 #2B125B #431C8E #5B26C1

Accessibility & contrast

On white

15.67
#2B125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2B125B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B125B
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B125B#FFFFFF#000000##FFFFFF
##2B125B1.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#00225A
Tritanopia (blue-blind)
#1B2635
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b125b;
/* rgb */ color: rgb(43, 18, 91);
/* oklch */ color: oklch(27.1% 0.121 291.9);
Tailwind
colors: {
  custom: {
    50: '#6a538a',
    500: '#2b125b',
    950: '#000000',
  },
}
SCSS
$custom: #2b125b;
$custom-light: #6a538a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b125b",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 260.548,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27117,
    "c": 0.1206,
    "h": 291.9
  },
  "luminance": 0.01702
}

Semantic roles & 50–950 ramp

primary
#2B125B
secondary
#739335
accent
#EA3EAF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B125B

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

Preview Lab → · Contrast checker → · Palette generator →

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