#2D145C#2D145C

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

Color values

HEX#2D145C
RGBrgb(45, 20, 92)
HSLhsl(261, 64%, 22%)
HSVhsv(261, 78%, 36%)
CMYKcmyk(51.1%, 78.3%, 0%, 63.9%)
CIE-LABlab(14.57, 30.73, -38.43)
CIE-LCHlch(14.57, 49.21, 308.65°)
OKLaboklab(27.73% 0.0462 -0.1102)
OKLCHoklch(27.73% 0.119 292.7)
XYZxyz(3.2636, 1.8308, 10.3046)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D145C #435C14
analogous
#141F5C #2D145C #51145C
triadic
#2D145C #5C2D14 #145C2D
tetradic
#2D145C #5C141F #435C14 #145C51
square
#2D145C #5C141F #435C14 #145C51
split-complementary
#2D145C #5C5114 #1F5C14
monochromatic
#0C0519 #14092A #2D145C #461F8E #5E2AC1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D145C#FFFFFF#000000##FFFFFF
##2D145C1.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)
#00265E
Deuteranopia (green-blind)
#00235B
Tritanopia (blue-blind)
#1E2736
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d145c;
/* rgb */ color: rgb(45, 20, 92);
/* oklch */ color: oklch(27.7% 0.119 292.7);
Tailwind
colors: {
  custom: {
    50: '#6c548b',
    500: '#2d145c',
    950: '#000000',
  },
}
SCSS
$custom: #2d145c;
$custom-light: #6c548b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d145c",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 260.833,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27726,
    "c": 0.11949,
    "h": 292.7
  },
  "luminance": 0.01831
}

Semantic roles & 50–950 ramp

primary
#2D145C
secondary
#749438
accent
#E741AD
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D145C

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

Preview Lab → · Contrast checker → · Palette generator →

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