#2D145E#2D145E

#2D145E is a dark, vivid violet. Relative luminance 0.019; OKLCH L 27.9% C 0.122 H 292.0°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#2D145E
RGBrgb(45, 20, 94)
HSLhsl(260, 65%, 22%)
HSVhsv(260, 79%, 37%)
CMYKcmyk(52.1%, 78.7%, 0%, 63.1%)
CIE-LABlab(14.77, 31.35, -39.45)
CIE-LCHlch(14.77, 50.39, 308.47°)
OKLaboklab(27.93% 0.0457 -0.1132)
OKLCHoklch(27.93% 0.122 292)
XYZxyz(3.3522, 1.8662, 10.7711)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D145E #455E14
analogous
#14205E #2D145E #52145E
triadic
#2D145E #5E2D14 #145E2D
tetradic
#2D145E #5E1420 #455E14 #145E52
square
#2D145E #5E1420 #455E14 #145E52
split-complementary
#2D145E #5E5214 #205E14
monochromatic
#0C0519 #15092C #2D145E #451F90 #5D29C3

Accessibility & contrast

On white

15.29
#2D145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D145E
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D145E#FFFFFF#000000##FFFFFF
##2D145E1.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00245D
Tritanopia (blue-blind)
#1D2838
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d145e;
/* rgb */ color: rgb(45, 20, 94);
/* oklch */ color: oklch(27.9% 0.122 292.0);
Tailwind
colors: {
  custom: {
    50: '#6c548c',
    500: '#2d145e',
    950: '#000000',
  },
}
SCSS
$custom: #2d145e;
$custom-light: #6c548c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d145e",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 260.27,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27925,
    "c": 0.12205,
    "h": 292
  },
  "luminance": 0.01866
}

Semantic roles & 50–950 ramp

primary
#2D145E
secondary
#769638
accent
#E840AF
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D145E

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

Preview Lab → · Contrast checker → · Palette generator →

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