#2D165F#2D165F

#2D165F is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.3% C 0.121 H 291.1°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#2D165F
RGBrgb(45, 22, 95)
HSLhsl(259, 62%, 23%)
HSVhsv(259, 77%, 37%)
CMYKcmyk(52.6%, 76.8%, 0%, 62.7%)
CIE-LABlab(15.26, 30.54, -39.30)
CIE-LCHlch(15.26, 49.77, 307.84°)
OKLaboklab(28.31% 0.0434 -0.1128)
OKLCHoklch(28.31% 0.121 291.1)
XYZxyz(3.4341, 1.9578, 11.0212)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D165F #485F16
analogous
#16235F #2D165F #51165F
triadic
#2D165F #5F2D16 #165F2D
tetradic
#2D165F #5F1623 #485F16 #165F51
square
#2D165F #5F1623 #485F16 #165F51
split-complementary
#2D165F #5F5116 #235F16
monochromatic
#0C0619 #150A2D #2D165F #452291 #5C2DC2

Accessibility & contrast

On white

15.09
#2D165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2D165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D165F
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D165F#FFFFFF#000000##FFFFFF
##2D165F1.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00255E
Tritanopia (blue-blind)
#1C2939
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d165f;
/* rgb */ color: rgb(45, 22, 95);
/* oklch */ color: oklch(28.3% 0.121 291.1);
Tailwind
colors: {
  custom: {
    50: '#6c558d',
    500: '#2d165f',
    950: '#000000',
  },
}
SCSS
$custom: #2d165f;
$custom-light: #6c558d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d165f",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 258.904,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28305,
    "c": 0.12085,
    "h": 291.1
  },
  "luminance": 0.01958
}

Semantic roles & 50–950 ramp

primary
#2D165F
secondary
#79963B
accent
#E542B2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D165F

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

Preview Lab → · Contrast checker → · Palette generator →

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