#2B124B#2B124B

#2B124B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.100 H 299.3°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#2B124B
RGBrgb(43, 18, 75)
HSLhsl(266, 61%, 18%)
HSVhsv(266, 76%, 29%)
CMYKcmyk(42.7%, 76%, 0%, 70.6%)
CIE-LABlab(12.31, 26.30, -30.55)
CIE-LCHlch(12.31, 40.31, 310.72°)
OKLaboklab(25.57% 0.0489 -0.0871)
OKLCHoklch(25.57% 0.1 299.3)
XYZxyz(2.4822, 1.4542, 6.8052)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B124B #324B12
analogous
#12154B #2B124B #47124B
triadic
#2B124B #4B2B12 #124B2B
tetradic
#2B124B #4B1215 #324B12 #124B47
square
#2B124B #4B1215 #324B12 #124B47
split-complementary
#2B124B #4B4712 #154B12
monochromatic
#0E0619 #0F061A #2B124B #471E7C #642AAE

Accessibility & contrast

On white

16.27
#2B124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B124B
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B124B#FFFFFF#000000##FFFFFF
##2B124B1.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#00204A
Tritanopia (blue-blind)
#24202C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b124b;
/* rgb */ color: rgb(43, 18, 75);
/* oklch */ color: oklch(25.6% 0.100 299.3);
Tailwind
colors: {
  custom: {
    50: '#68527e',
    500: '#2b124b',
    950: '#000000',
  },
}
SCSS
$custom: #2b124b;
$custom-light: #68527e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b124b",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 266.316,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25567,
    "c": 0.09989,
    "h": 299.3
  },
  "luminance": 0.01454
}

Semantic roles & 50–950 ramp

primary
#2B124B
secondary
#618435
accent
#E4439E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B124B

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

Preview Lab → · Contrast checker → · Palette generator →

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