#2D155A#2D155A

#2D155A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.116 H 293.2°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#2D155A
RGBrgb(45, 21, 90)
HSLhsl(261, 62%, 22%)
HSVhsv(261, 77%, 35%)
CMYKcmyk(50%, 76.7%, 0%, 64.7%)
CIE-LABlab(14.58, 29.56, -37.07)
CIE-LCHlch(14.58, 47.41, 308.56°)
OKLaboklab(27.67% 0.0456 -0.1062)
OKLCHoklch(27.67% 0.116 293.2)
XYZxyz(3.1953, 1.8323, 9.8562)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D155A #425A15
analogous
#151F5A #2D155A #50155A
triadic
#2D155A #5A2D15 #155A2D
tetradic
#2D155A #5A151F #425A15 #155A50
square
#2D155A #5A151F #425A15 #155A50
split-complementary
#2D155A #5A5015 #1F5A15
monochromatic
#0C0619 #140928 #2D155A #46218C #5F2CBD

Accessibility & contrast

On white

15.37
#2D155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D155A
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D155A#FFFFFF#000000##FFFFFF
##2D155A1.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d155a;
/* rgb */ color: rgb(45, 21, 90);
/* oklch */ color: oklch(27.7% 0.116 293.2);
Tailwind
colors: {
  custom: {
    50: '#6b5589',
    500: '#2d155a',
    950: '#000000',
  },
}
SCSS
$custom: #2d155a;
$custom-light: #6b5589;
$custom-dark: #000000;
JSON
{
  "hex": "#2d155a",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 260.87,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27673,
    "c": 0.11562,
    "h": 293.2
  },
  "luminance": 0.01832
}

Semantic roles & 50–950 ramp

primary
#2D155A
secondary
#739239
accent
#E543AD
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D155A

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

Preview Lab → · Contrast checker → · Palette generator →

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