#2D163B#2D163B

#2D163B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.072 H 311.0°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#2D163B
RGBrgb(45, 22, 59)
HSLhsl(277, 46%, 16%)
HSVhsv(277, 63%, 23%)
CMYKcmyk(23.7%, 62.7%, 0%, 76.9%)
CIE-LABlab(12.27, 19.74, -19.38)
CIE-LCHlch(12.27, 27.66, 315.52°)
OKLaboklab(25.2% 0.0472 -0.0543)
OKLCHoklch(25.2% 0.072 311)
XYZxyz(2.1584, 1.4475, 4.3025)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D163B #243B16
analogous
#1A163B #2D163B #3B1636
triadic
#2D163B #3B2D16 #163B2D
tetradic
#2D163B #3B1A16 #243B16 #16363B
square
#2D163B #3B1A16 #243B16 #16363B
split-complementary
#2D163B #363B16 #163B1A
monochromatic
#110816 #110816 #2D163B #4F2768 #713794

Accessibility & contrast

On white

16.29
#2D163B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D163B
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D163B#FFFFFF#000000##FFFFFF
##2D163B1.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1F3C
Deuteranopia (green-blind)
#13203A
Tritanopia (blue-blind)
#2B1C26
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d163b;
/* rgb */ color: rgb(45, 22, 59);
/* oklch */ color: oklch(25.2% 0.072 311.0);
Tailwind
colors: {
  custom: {
    50: '#675471',
    500: '#2d163b',
    950: '#000000',
  },
}
SCSS
$custom: #2d163b;
$custom-light: #675471;
$custom-dark: #000000;
JSON
{
  "hex": "#2d163b",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 59
  },
  "hsl": {
    "h": 277.297,
    "s": 45.679,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25201,
    "c": 0.07191,
    "h": 311
  },
  "luminance": 0.01447
}

Semantic roles & 50–950 ramp

primary
#2D163B
secondary
#50723B
accent
#D55284
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060307
muted
#7A787A

Preview Lab

Preview with #2D163B

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

Preview Lab → · Contrast checker → · Palette generator →

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