#2D165C#2D165C

#2D165C is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.117 H 292.2°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#2D165C
RGBrgb(45, 22, 92)
HSLhsl(260, 61%, 22%)
HSVhsv(260, 76%, 36%)
CMYKcmyk(51.1%, 76.1%, 0%, 63.9%)
CIE-LABlab(14.98, 29.60, -37.77)
CIE-LCHlch(14.98, 47.99, 308.09°)
OKLaboklab(28.01% 0.0441 -0.1083)
OKLCHoklch(28.01% 0.117 292.2)
XYZxyz(3.3003, 1.9043, 10.3168)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D165C #455C16
analogous
#16225C #2D165C #50165C
triadic
#2D165C #5C2D16 #165C2D
tetradic
#2D165C #5C1622 #455C16 #165C50
square
#2D165C #5C1622 #455C16 #165C50
split-complementary
#2D165C #5C5016 #225C16
monochromatic
#0C0619 #150A2B #2D165C #45228D #5D2EBF

Accessibility & contrast

On white

15.21
#2D165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2D165C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D165C
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D165C#FFFFFF#000000##FFFFFF
##2D165C1.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#00245B
Tritanopia (blue-blind)
#1E2837
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d165c;
/* rgb */ color: rgb(45, 22, 92);
/* oklch */ color: oklch(28.0% 0.117 292.2);
Tailwind
colors: {
  custom: {
    50: '#6b558b',
    500: '#2d165c',
    950: '#000000',
  },
}
SCSS
$custom: #2d165c;
$custom-light: #6b558b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d165c",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 259.714,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28012,
    "c": 0.11693,
    "h": 292.2
  },
  "luminance": 0.01904
}

Semantic roles & 50–950 ramp

primary
#2D165C
secondary
#76933B
accent
#E543B0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D165C

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

Preview Lab → · Contrast checker → · Palette generator →

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