#2B124D#2B124D

#2B124D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.103 H 298.2°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#2B124D
RGBrgb(43, 18, 77)
HSLhsl(265, 62%, 19%)
HSVhsv(265, 77%, 30%)
CMYKcmyk(44.2%, 76.6%, 0%, 69.8%)
CIE-LABlab(12.49, 26.90, -31.64)
CIE-LCHlch(12.49, 41.53, 310.37°)
OKLaboklab(25.75% 0.0485 -0.0903)
OKLCHoklch(25.75% 0.103 298.2)
XYZxyz(2.5518, 1.4820, 7.1713)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B124D #344D12
analogous
#12164D #2B124D #48124D
triadic
#2B124D #4D2B12 #124D2B
tetradic
#2B124D #4D1216 #344D12 #124D48
square
#2B124D #4D1216 #344D12 #124D48
split-complementary
#2B124D #4D4812 #164D12
monochromatic
#0E0619 #0F061B #2B124D #471E7F #6229B0

Accessibility & contrast

On white

16.20
#2B124D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2B124D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B124D
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B124D#FFFFFF#000000##FFFFFF
##2B124D1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#23202E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b124d;
/* rgb */ color: rgb(43, 18, 77);
/* oklch */ color: oklch(25.8% 0.103 298.2);
Tailwind
colors: {
  custom: {
    50: '#68527f',
    500: '#2b124d',
    950: '#000000',
  },
}
SCSS
$custom: #2b124d;
$custom-light: #68527f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b124d",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 77
  },
  "hsl": {
    "h": 265.424,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25752,
    "c": 0.10252,
    "h": 298.2
  },
  "luminance": 0.01482
}

Semantic roles & 50–950 ramp

primary
#2B124D
secondary
#648635
accent
#E543A0
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B124D

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

Preview Lab → · Contrast checker → · Palette generator →

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