#2B125A#2B125A

#2B125A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.119 H 292.3°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#2B125A
RGBrgb(43, 18, 90)
HSLhsl(261, 67%, 21%)
HSVhsv(261, 80%, 35%)
CMYKcmyk(52.2%, 80%, 0%, 64.7%)
CIE-LABlab(13.73, 30.85, -38.47)
CIE-LCHlch(13.73, 49.31, 308.73°)
OKLaboklab(27.02% 0.0453 -0.1104)
OKLCHoklch(27.02% 0.119 292.3)
XYZxyz(3.0575, 1.6843, 9.8349)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B125A #415A12
analogous
#121D5A #2B125A #4F125A
triadic
#2B125A #5A2B12 #125A2B
tetradic
#2B125A #5A121D #415A12 #125A4F
square
#2B125A #5A121D #415A12 #125A4F
split-complementary
#2B125A #5A4F12 #1D5A12
monochromatic
#0C051A #130827 #2B125A #431C8D #5C26C0

Accessibility & contrast

On white

15.71
#2B125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B125A
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B125A#FFFFFF#000000##FFFFFF
##2B125A1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#1C2535
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b125a;
/* rgb */ color: rgb(43, 18, 90);
/* oklch */ color: oklch(27.0% 0.119 292.3);
Tailwind
colors: {
  custom: {
    50: '#6a5389',
    500: '#2b125a',
    950: '#000000',
  },
}
SCSS
$custom: #2b125a;
$custom-light: #6a5389;
$custom-dark: #000000;
JSON
{
  "hex": "#2b125a",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 260.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27016,
    "c": 0.11933,
    "h": 292.3
  },
  "luminance": 0.01684
}

Semantic roles & 50–950 ramp

primary
#2B125A
secondary
#729335
accent
#EA3EAE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B125A

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

Preview Lab → · Contrast checker → · Palette generator →

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