#2D145D#2D145D

#2D145D is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.121 H 292.3°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#2D145D
RGBrgb(45, 20, 93)
HSLhsl(261, 65%, 22%)
HSVhsv(261, 78%, 36%)
CMYKcmyk(51.6%, 78.5%, 0%, 63.5%)
CIE-LABlab(14.67, 31.04, -38.94)
CIE-LCHlch(14.67, 49.80, 308.56°)
OKLaboklab(27.83% 0.0459 -0.1117)
OKLCHoklch(27.83% 0.121 292.3)
XYZxyz(3.3076, 1.8484, 10.5363)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D145D #445D14
analogous
#14205D #2D145D #52145D
triadic
#2D145D #5D2D14 #145D2D
tetradic
#2D145D #5D1420 #445D14 #145D52
square
#2D145D #5D1420 #445D14 #145D52
split-complementary
#2D145D #5D5214 #205D14
monochromatic
#0C0519 #15092B #2D145D #451F8F #5E2AC2

Accessibility & contrast

On white

15.33
#2D145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D145D
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D145D#FFFFFF#000000##FFFFFF
##2D145D1.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00245C
Tritanopia (blue-blind)
#1E2737
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d145d;
/* rgb */ color: rgb(45, 20, 93);
/* oklch */ color: oklch(27.8% 0.121 292.3);
Tailwind
colors: {
  custom: {
    50: '#6c548c',
    500: '#2d145d',
    950: '#000000',
  },
}
SCSS
$custom: #2d145d;
$custom-light: #6c548c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d145d",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 260.548,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27825,
    "c": 0.12077,
    "h": 292.3
  },
  "luminance": 0.01849
}

Semantic roles & 50–950 ramp

primary
#2D145D
secondary
#759538
accent
#E840AE
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D145D

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

Preview Lab → · Contrast checker → · Palette generator →

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