#2D145F#2D145F

#2D145F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.0% C 0.123 H 291.6°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#2D145F
RGBrgb(45, 20, 95)
HSLhsl(260, 65%, 23%)
HSVhsv(260, 79%, 37%)
CMYKcmyk(52.6%, 78.9%, 0%, 62.7%)
CIE-LABlab(14.87, 31.65, -39.95)
CIE-LCHlch(14.87, 50.97, 308.39°)
OKLaboklab(28.03% 0.0454 -0.1147)
OKLCHoklch(28.03% 0.123 291.6)
XYZxyz(3.3973, 1.8843, 11.0090)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D145F #465F14
analogous
#14215F #2D145F #52145F
triadic
#2D145F #5F2D14 #145F2D
tetradic
#2D145F #5F1421 #465F14 #145F52
square
#2D145F #5F1421 #465F14 #145F52
split-complementary
#2D145F #5F5214 #215F14
monochromatic
#0C0519 #15092C #2D145F #451F92 #5D29C4

Accessibility & contrast

On white

15.25
#2D145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2D145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D145F
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D145F#FFFFFF#000000##FFFFFF
##2D145F1.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d145f;
/* rgb */ color: rgb(45, 20, 95);
/* oklch */ color: oklch(28.0% 0.123 291.6);
Tailwind
colors: {
  custom: {
    50: '#6c548d',
    500: '#2d145f',
    950: '#000000',
  },
}
SCSS
$custom: #2d145f;
$custom-light: #6c548d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d145f",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 260,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28025,
    "c": 0.12333,
    "h": 291.6
  },
  "luminance": 0.01884
}

Semantic roles & 50–950 ramp

primary
#2D145F
secondary
#779738
accent
#E840B0
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D145F

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

Preview Lab → · Contrast checker → · Palette generator →

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