#2B124A#2B124A

#2B124A is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.099 H 299.8°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#2B124A
RGBrgb(43, 18, 74)
HSLhsl(267, 61%, 18%)
HSVhsv(267, 76%, 29%)
CMYKcmyk(41.9%, 75.7%, 0%, 71%)
CIE-LABlab(12.23, 26.00, -30.00)
CIE-LCHlch(12.23, 39.70, 310.92°)
OKLaboklab(25.48% 0.049 -0.0855)
OKLCHoklch(25.48% 0.099 299.8)
XYZxyz(2.4483, 1.4406, 6.6263)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B124A #314A12
analogous
#12154A #2B124A #47124A
triadic
#2B124A #4A2B12 #124A2B
tetradic
#2B124A #4A1215 #314A12 #124A47
square
#2B124A #4A1215 #314A12 #124A47
split-complementary
#2B124A #4A4712 #154A12
monochromatic
#0E0619 #0E0619 #2B124A #481E7B #642AAC

Accessibility & contrast

On white

16.30
#2B124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2B124A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B124A
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B124A#FFFFFF#000000##FFFFFF
##2B124A1.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#241F2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b124a;
/* rgb */ color: rgb(43, 18, 74);
/* oklch */ color: oklch(25.5% 0.099 299.8);
Tailwind
colors: {
  custom: {
    50: '#68527d',
    500: '#2b124a',
    950: '#000000',
  },
}
SCSS
$custom: #2b124a;
$custom-light: #68527d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b124a",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 266.786,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25476,
    "c": 0.09857,
    "h": 299.8
  },
  "luminance": 0.01441
}

Semantic roles & 50–950 ramp

primary
#2B124A
secondary
#608335
accent
#E4449C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B124A

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

Preview Lab → · Contrast checker → · Palette generator →

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