#2D145A#2D145A

#2D145A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.117 H 293.5°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#2D145A
RGBrgb(45, 20, 90)
HSLhsl(261, 64%, 22%)
HSVhsv(261, 78%, 35%)
CMYKcmyk(50%, 77.8%, 0%, 64.7%)
CIE-LABlab(14.38, 30.12, -37.40)
CIE-LCHlch(14.38, 48.02, 308.84°)
OKLaboklab(27.53% 0.0467 -0.1072)
OKLCHoklch(27.53% 0.117 293.5)
XYZxyz(3.1773, 1.7963, 9.8502)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D145A #415A14
analogous
#141E5A #2D145A #50145A
triadic
#2D145A #5A2D14 #145A2D
tetradic
#2D145A #5A141E #415A14 #145A50
square
#2D145A #5A141E #415A14 #145A50
split-complementary
#2D145A #5A5014 #1E5A14
monochromatic
#0D0619 #140928 #2D145A #461F8C #5F2ABE

Accessibility & contrast

On white

15.45
#2D145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2D145A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D145A
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D145A#FFFFFF#000000##FFFFFF
##2D145A1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002359
Tritanopia (blue-blind)
#202635
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d145a;
/* rgb */ color: rgb(45, 20, 90);
/* oklch */ color: oklch(27.5% 0.117 293.5);
Tailwind
colors: {
  custom: {
    50: '#6b5489',
    500: '#2d145a',
    950: '#000000',
  },
}
SCSS
$custom: #2d145a;
$custom-light: #6b5489;
$custom-dark: #000000;
JSON
{
  "hex": "#2d145a",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 261.429,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.2753,
    "c": 0.11692,
    "h": 293.5
  },
  "luminance": 0.01796
}

Semantic roles & 50–950 ramp

primary
#2D145A
secondary
#729238
accent
#E741AC
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D145A

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

Preview Lab → · Contrast checker → · Palette generator →

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