#2B123F#2B123F

#2B123F is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.5% C 0.084 H 306.8°. Best body text is #FFFFFF at 16.65:1 contrast (WCAG AA passes).

Color values

HEX#2B123F
RGBrgb(43, 18, 63)
HSLhsl(273, 56%, 16%)
HSVhsv(273, 71%, 25%)
CMYKcmyk(31.7%, 71.4%, 0%, 75.3%)
CIE-LABlab(11.31, 22.80, -23.77)
CIE-LCHlch(11.31, 32.93, 313.80°)
OKLaboklab(24.53% 0.0503 -0.0672)
OKLCHoklch(24.53% 0.084 306.8)
XYZxyz(2.1096, 1.3051, 4.8424)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B123F #263F12
analogous
#14123F #2B123F #3F123C
triadic
#2B123F #3F2B12 #123F2B
tetradic
#2B123F #3F1412 #263F12 #123C3F
square
#2B123F #3F1412 #263F12 #123C3F
split-complementary
#2B123F #3C3F12 #123F14
monochromatic
#100718 #100718 #2B123F #4B206F #6C2D9E

Accessibility & contrast

On white

16.65
#2B123F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2B123F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B123F
16.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B123F#FFFFFF#000000##FFFFFF
##2B123F1.0016.651.2616.65
#FFFFFF16.651.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D40
Deuteranopia (green-blind)
#091E3E
Tritanopia (blue-blind)
#281B26
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2b123f;
/* rgb */ color: rgb(43, 18, 63);
/* oklch */ color: oklch(24.5% 0.084 306.8);
Tailwind
colors: {
  custom: {
    50: '#665174',
    500: '#2b123f',
    950: '#000000',
  },
}
SCSS
$custom: #2b123f;
$custom-light: #665174;
$custom-dark: #000000;
JSON
{
  "hex": "#2b123f",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 63
  },
  "hsl": {
    "h": 273.333,
    "s": 55.556,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24529,
    "c": 0.08393,
    "h": 306.8
  },
  "luminance": 0.01305
}

Semantic roles & 50–950 ramp

primary
#2B123F
secondary
#537835
accent
#DF498C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2B123F

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

Preview Lab → · Contrast checker → · Palette generator →

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