#2D165E#2D165E

#2D165E is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.2% C 0.120 H 291.4°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#2D165E
RGBrgb(45, 22, 94)
HSLhsl(259, 62%, 23%)
HSVhsv(259, 77%, 37%)
CMYKcmyk(52.1%, 76.6%, 0%, 63.1%)
CIE-LABlab(15.17, 30.22, -38.80)
CIE-LCHlch(15.17, 49.18, 307.92°)
OKLaboklab(28.21% 0.0437 -0.1113)
OKLCHoklch(28.21% 0.12 291.4)
XYZxyz(3.3889, 1.9397, 10.7833)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D165E #475E16
analogous
#16235E #2D165E #51165E
triadic
#2D165E #5E2D16 #165E2D
tetradic
#2D165E #5E1623 #475E16 #165E51
square
#2D165E #5E1623 #475E16 #165E51
split-complementary
#2D165E #5E5116 #235E16
monochromatic
#0C0619 #150A2C #2D165E #452290 #5C2DC1

Accessibility & contrast

On white

15.13
#2D165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D165E
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D165E#FFFFFF#000000##FFFFFF
##2D165E1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00245D
Tritanopia (blue-blind)
#1D2938
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d165e;
/* rgb */ color: rgb(45, 22, 94);
/* oklch */ color: oklch(28.2% 0.120 291.4);
Tailwind
colors: {
  custom: {
    50: '#6c558c',
    500: '#2d165e',
    950: '#000000',
  },
}
SCSS
$custom: #2d165e;
$custom-light: #6c558c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d165e",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 259.167,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28207,
    "c": 0.11955,
    "h": 291.4
  },
  "luminance": 0.0194
}

Semantic roles & 50–950 ramp

primary
#2D165E
secondary
#78953B
accent
#E543B1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D165E

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

Preview Lab → · Contrast checker → · Palette generator →

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