#2D163F#2D163F

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

Color values

HEX#2D163F
RGBrgb(45, 22, 63)
HSLhsl(274, 48%, 17%)
HSVhsv(274, 65%, 25%)
CMYKcmyk(28.6%, 65.1%, 0%, 75.3%)
CIE-LABlab(12.55, 20.86, -21.77)
CIE-LCHlch(12.55, 30.15, 313.77°)
OKLaboklab(25.5% 0.0474 -0.0613)
OKLCHoklch(25.5% 0.077 307.7)
XYZxyz(2.2661, 1.4906, 4.8700)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D163F #283F16
analogous
#19163F #2D163F #3F163D
triadic
#2D163F #3F2D16 #163F2D
tetradic
#2D163F #3F1916 #283F16 #163D3F
square
#2D163F #3F1916 #283F16 #163D3F
split-complementary
#2D163F #3D3F16 #163F19
monochromatic
#100817 #100817 #2D163F #4D266C #6E369A

Accessibility & contrast

On white

16.18
#2D163F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D163F
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D163F#FFFFFF#000000##FFFFFF
##2D163F1.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072040
Deuteranopia (green-blind)
#10213E
Tritanopia (blue-blind)
#2A1E28
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2d163f;
/* rgb */ color: rgb(45, 22, 63);
/* oklch */ color: oklch(25.5% 0.077 307.7);
Tailwind
colors: {
  custom: {
    50: '#675474',
    500: '#2d163f',
    950: '#000000',
  },
}
SCSS
$custom: #2d163f;
$custom-light: #675474;
$custom-dark: #000000;
JSON
{
  "hex": "#2d163f",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 63
  },
  "hsl": {
    "h": 273.659,
    "s": 48.235,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25495,
    "c": 0.07746,
    "h": 307.7
  },
  "luminance": 0.01491
}

Semantic roles & 50–950 ramp

primary
#2D163F
secondary
#55763B
accent
#D8508C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2D163F

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

Preview Lab → · Contrast checker → · Palette generator →

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