#2D163E#2D163E

#2D163E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.4% C 0.076 H 308.5°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#2D163E
RGBrgb(45, 22, 62)
HSLhsl(275, 48%, 16%)
HSVhsv(275, 65%, 24%)
CMYKcmyk(27.4%, 64.5%, 0%, 75.7%)
CIE-LABlab(12.48, 20.57, -21.18)
CIE-LCHlch(12.48, 29.53, 314.17°)
OKLaboklab(25.42% 0.0473 -0.0595)
OKLCHoklch(25.42% 0.076 308.5)
XYZxyz(2.2384, 1.4795, 4.7242)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D163E #273E16
analogous
#19163E #2D163E #3E163B
triadic
#2D163E #3E2D16 #163E2D
tetradic
#2D163E #3E1916 #273E16 #163B3E
square
#2D163E #3E1916 #273E16 #163B3E
split-complementary
#2D163E #3B3E16 #163E19
monochromatic
#100817 #100817 #2D163E #4E266B #6F3698

Accessibility & contrast

On white

16.20
#2D163E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D163E
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D163E#FFFFFF#000000##FFFFFF
##2D163E1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08203F
Deuteranopia (green-blind)
#11213D
Tritanopia (blue-blind)
#2B1D27
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d163e;
/* rgb */ color: rgb(45, 22, 62);
/* oklch */ color: oklch(25.4% 0.076 308.5);
Tailwind
colors: {
  custom: {
    50: '#675473',
    500: '#2d163e',
    950: '#000000',
  },
}
SCSS
$custom: #2d163e;
$custom-light: #675473;
$custom-dark: #000000;
JSON
{
  "hex": "#2d163e",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 62
  },
  "hsl": {
    "h": 274.5,
    "s": 47.619,
    "l": 16.471
  },
  "oklch": {
    "l": 0.2542,
    "c": 0.07607,
    "h": 308.5
  },
  "luminance": 0.0148
}

Semantic roles & 50–950 ramp

primary
#2D163E
secondary
#54753B
accent
#D7518A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2D163E

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

Preview Lab → · Contrast checker → · Palette generator →

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