#2D194E#2D194E

#2D194E is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.093 H 297.2°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#2D194E
RGBrgb(45, 25, 78)
HSLhsl(263, 51%, 20%)
HSVhsv(263, 68%, 31%)
CMYKcmyk(42.3%, 67.9%, 0%, 69.4%)
CIE-LABlab(14.42, 23.39, -29.20)
CIE-LCHlch(14.42, 37.41, 308.70°)
OKLaboklab(27.23% 0.0426 -0.0831)
OKLCHoklch(27.23% 0.093 297.2)
XYZxyz(2.8046, 1.8032, 7.4065)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D194E #3A4E19
analogous
#191F4E #2D194E #48194E
triadic
#2D194E #4E2D19 #194E2D
tetradic
#2D194E #4E191F #3A4E19 #194E48
square
#2D194E #4E191F #3A4E19 #194E48
split-complementary
#2D194E #4E4819 #1F4E19
monochromatic
#0D0717 #120A20 #2D194E #48287C #6237AB

Accessibility & contrast

On white

15.43
#2D194E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D194E
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D194E#FFFFFF#000000##FFFFFF
##2D194E1.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002550
Deuteranopia (green-blind)
#02244D
Tritanopia (blue-blind)
#252530
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d194e;
/* rgb */ color: rgb(45, 25, 78);
/* oklch */ color: oklch(27.2% 0.093 297.2);
Tailwind
colors: {
  custom: {
    50: '#695780',
    500: '#2d194e',
    950: '#000000',
  },
}
SCSS
$custom: #2d194e;
$custom-light: #695780;
$custom-dark: #000000;
JSON
{
  "hex": "#2d194e",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 78
  },
  "hsl": {
    "h": 262.642,
    "s": 51.456,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27225,
    "c": 0.09339,
    "h": 297.2
  },
  "luminance": 0.01803
}

Semantic roles & 50–950 ramp

primary
#2D194E
secondary
#6A843E
accent
#DB4DA5
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2D194E

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

Preview Lab → · Contrast checker → · Palette generator →

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