#2D146E#2D146E

#2D146E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.142 H 286.7°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#2D146E
RGBrgb(45, 20, 110)
HSLhsl(257, 69%, 25%)
HSVhsv(257, 82%, 43%)
CMYKcmyk(59.1%, 81.8%, 0%, 56.9%)
CIE-LABlab(16.42, 36.25, -47.28)
CIE-LCHlch(16.42, 59.58, 307.48°)
OKLaboklab(29.59% 0.0409 -0.1361)
OKLCHoklch(29.59% 0.142 286.7)
XYZxyz(4.1460, 2.1838, 14.9519)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D146E #556E14
analogous
#14286E #2D146E #5A146E
triadic
#2D146E #6E2D14 #146E2D
tetradic
#2D146E #6E1428 #556E14 #146E5A
square
#2D146E #6E1428 #556E14 #146E5A
split-complementary
#2D146E #6E5A14 #286E14
monochromatic
#0B051A #180B3A #2D146E #421DA2 #5727D6

Accessibility & contrast

On white

14.62
#2D146E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2D146E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D146E
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D146E#FFFFFF#000000##FFFFFF
##2D146E1.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B71
Deuteranopia (green-blind)
#00266C
Tritanopia (blue-blind)
#0E2E41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d146e;
/* rgb */ color: rgb(45, 20, 110);
/* oklch */ color: oklch(29.6% 0.142 286.7);
Tailwind
colors: {
  custom: {
    50: '#6f5599',
    500: '#2d146e',
    950: '#000000',
  },
}
SCSS
$custom: #2d146e;
$custom-light: #6f5599;
$custom-dark: #000000;
JSON
{
  "hex": "#2d146e",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 110
  },
  "hsl": {
    "h": 256.667,
    "s": 69.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29587,
    "c": 0.14213,
    "h": 286.7
  },
  "luminance": 0.02184
}

Semantic roles & 50–950 ramp

primary
#2D146E
secondary
#87A539
accent
#EC3CBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D146E

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

Preview Lab → · Contrast checker → · Palette generator →

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