#2D165A#2D165A

#2D165A is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.114 H 293.0°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#2D165A
RGBrgb(45, 22, 90)
HSLhsl(260, 61%, 22%)
HSVhsv(260, 76%, 35%)
CMYKcmyk(50%, 75.6%, 0%, 64.7%)
CIE-LABlab(14.79, 28.98, -36.74)
CIE-LCHlch(14.79, 46.79, 308.27°)
OKLaboklab(27.82% 0.0446 -0.1052)
OKLCHoklch(27.82% 0.114 293)
XYZxyz(3.2141, 1.8698, 9.8624)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D165A #435A16
analogous
#16215A #2D165A #4F165A
triadic
#2D165A #5A2D16 #165A2D
tetradic
#2D165A #5A1621 #435A16 #165A4F
square
#2D165A #5A1621 #435A16 #165A4F
split-complementary
#2D165A #5A4F16 #215A16
monochromatic
#0C0619 #140A29 #2D165A #46228B #5E2EBC

Accessibility & contrast

On white

15.28
#2D165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2D165A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D165A
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D165A#FFFFFF#000000##FFFFFF
##2D165A1.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002459
Tritanopia (blue-blind)
#1F2736
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d165a;
/* rgb */ color: rgb(45, 22, 90);
/* oklch */ color: oklch(27.8% 0.114 293.0);
Tailwind
colors: {
  custom: {
    50: '#6b5589',
    500: '#2d165a',
    950: '#000000',
  },
}
SCSS
$custom: #2d165a;
$custom-light: #6b5589;
$custom-dark: #000000;
JSON
{
  "hex": "#2d165a",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 260.294,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.2782,
    "c": 0.11429,
    "h": 293
  },
  "luminance": 0.0187
}

Semantic roles & 50–950 ramp

primary
#2D165A
secondary
#74913B
accent
#E444AE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D165A

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

Preview Lab → · Contrast checker → · Palette generator →

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