#2B183E#2B183E

#2B183E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.5% C 0.072 H 305.0°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#2B183E
RGBrgb(43, 24, 62)
HSLhsl(270, 44%, 17%)
HSVhsv(270, 61%, 24%)
CMYKcmyk(30.6%, 61.3%, 0%, 75.7%)
CIE-LABlab(12.70, 18.61, -20.84)
CIE-LCHlch(12.70, 27.94, 311.77°)
OKLaboklab(25.52% 0.041 -0.0586)
OKLCHoklch(25.52% 0.072 305)
XYZxyz(2.1922, 1.5147, 4.7334)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B183E #2B3E18
analogous
#18183E #2B183E #3E183E
triadic
#2B183E #3E2B18 #183E2B
tetradic
#2B183E #3E1818 #2B3E18 #183E3E
square
#2B183E #3E1818 #2B3E18 #183E3E
split-complementary
#2B183E #3E3E18 #183E18
monochromatic
#0F0916 #0F0916 #2B183E #4A296A #683A96

Accessibility & contrast

On white

16.12
#2B183E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B183E
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B183E#FFFFFF#000000##FFFFFF
##2B183E1.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B203F
Deuteranopia (green-blind)
#11213D
Tritanopia (blue-blind)
#281F28
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2b183e;
/* rgb */ color: rgb(43, 24, 62);
/* oklch */ color: oklch(25.5% 0.072 305.0);
Tailwind
colors: {
  custom: {
    50: '#665573',
    500: '#2b183e',
    950: '#000000',
  },
}
SCSS
$custom: #2b183e;
$custom-light: #665573;
$custom-dark: #000000;
JSON
{
  "hex": "#2b183e",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 62
  },
  "hsl": {
    "h": 270,
    "s": 44.186,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25522,
    "c": 0.07154,
    "h": 305
  },
  "luminance": 0.01515
}

Semantic roles & 50–950 ramp

primary
#2B183E
secondary
#59743D
accent
#D45494
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2B183E

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

Preview Lab → · Contrast checker → · Palette generator →

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