#2D146C#2D146C

#2D146C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.140 H 287.3°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#2D146C
RGBrgb(45, 20, 108)
HSLhsl(257, 69%, 25%)
HSVhsv(257, 81%, 42%)
CMYKcmyk(58.3%, 81.5%, 0%, 57.6%)
CIE-LABlab(16.21, 35.64, -46.33)
CIE-LCHlch(16.21, 58.45, 307.57°)
OKLaboklab(29.37% 0.0415 -0.1333)
OKLCHoklch(29.37% 0.14 287.3)
XYZxyz(4.0383, 2.1407, 14.3849)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D146C #536C14
analogous
#14276C #2D146C #59146C
triadic
#2D146C #6C2D14 #146C2D
tetradic
#2D146C #6C1427 #536C14 #146C59
square
#2D146C #6C1427 #536C14 #146C59
split-complementary
#2D146C #6C5914 #276C14
monochromatic
#0B051A #170A38 #2D146C #431EA0 #5827D3

Accessibility & contrast

On white

14.70
#2D146C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2D146C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D146C
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D146C#FFFFFF#000000##FFFFFF
##2D146C1.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00266A
Tritanopia (blue-blind)
#112D40
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d146c;
/* rgb */ color: rgb(45, 20, 108);
/* oklch */ color: oklch(29.4% 0.140 287.3);
Tailwind
colors: {
  custom: {
    50: '#6e5597',
    500: '#2d146c',
    950: '#000000',
  },
}
SCSS
$custom: #2d146c;
$custom-light: #6e5597;
$custom-dark: #000000;
JSON
{
  "hex": "#2d146c",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 108
  },
  "hsl": {
    "h": 257.045,
    "s": 68.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29373,
    "c": 0.13966,
    "h": 287.3
  },
  "luminance": 0.02141
}

Semantic roles & 50–950 ramp

primary
#2D146C
secondary
#85A339
accent
#EC3CBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D146C

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

Preview Lab → · Contrast checker → · Palette generator →

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