#2B123E#2B123E

#2B123E is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.4% C 0.083 H 307.5°. Best body text is #FFFFFF at 16.68:1 contrast (WCAG AA passes).

Color values

HEX#2B123E
RGBrgb(43, 18, 62)
HSLhsl(274, 55%, 16%)
HSVhsv(274, 71%, 24%)
CMYKcmyk(30.6%, 71%, 0%, 75.7%)
CIE-LABlab(11.23, 22.51, -23.19)
CIE-LCHlch(11.23, 32.32, 314.15°)
OKLaboklab(24.45% 0.0503 -0.0655)
OKLCHoklch(24.45% 0.083 307.5)
XYZxyz(2.0819, 1.2940, 4.6966)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B123E #253E12
analogous
#15123E #2B123E #3E123B
triadic
#2B123E #3E2B12 #123E2B
tetradic
#2B123E #3E1512 #253E12 #123B3E
square
#2B123E #3E1512 #253E12 #123B3E
split-complementary
#2B123E #3B3E12 #123E15
monochromatic
#100718 #100718 #2B123E #4C206D #6D2E9D

Accessibility & contrast

On white

16.68
#2B123E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B123E
16.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B123E#FFFFFF#000000##FFFFFF
##2B123E1.0016.681.2616.68
#FFFFFF16.681.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011D3F
Deuteranopia (green-blind)
#0A1E3D
Tritanopia (blue-blind)
#281B25
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2b123e;
/* rgb */ color: rgb(43, 18, 62);
/* oklch */ color: oklch(24.4% 0.083 307.5);
Tailwind
colors: {
  custom: {
    50: '#665173',
    500: '#2b123e',
    950: '#000000',
  },
}
SCSS
$custom: #2b123e;
$custom-light: #665173;
$custom-dark: #000000;
JSON
{
  "hex": "#2b123e",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 62
  },
  "hsl": {
    "h": 274.091,
    "s": 55,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24448,
    "c": 0.0826,
    "h": 307.5
  },
  "luminance": 0.01294
}

Semantic roles & 50–950 ramp

primary
#2B123E
secondary
#517735
accent
#DE498A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2B123E

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

Preview Lab → · Contrast checker → · Palette generator →

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