#2D194F#2D194F

#2D194F is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.095 H 296.7°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#2D194F
RGBrgb(45, 25, 79)
HSLhsl(262, 52%, 20%)
HSVhsv(262, 68%, 31%)
CMYKcmyk(43%, 68.4%, 0%, 69%)
CIE-LABlab(14.50, 23.70, -29.75)
CIE-LCHlch(14.50, 38.04, 308.55°)
OKLaboklab(27.31% 0.0426 -0.0847)
OKLCHoklch(27.31% 0.095 296.7)
XYZxyz(2.8407, 1.8176, 7.5968)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D194F #3B4F19
analogous
#19204F #2D194F #48194F
triadic
#2D194F #4F2D19 #194F2D
tetradic
#2D194F #4F1920 #3B4F19 #194F48
square
#2D194F #4F1920 #3B4F19 #194F48
split-complementary
#2D194F #4F4819 #204F19
monochromatic
#0D0717 #130A21 #2D194F #47287D #6236AC

Accessibility & contrast

On white

15.40
#2D194F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D194F
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D194F#FFFFFF#000000##FFFFFF
##2D194F1.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002551
Deuteranopia (green-blind)
#01244E
Tritanopia (blue-blind)
#252531
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d194f;
/* rgb */ color: rgb(45, 25, 79);
/* oklch */ color: oklch(27.3% 0.095 296.7);
Tailwind
colors: {
  custom: {
    50: '#695781',
    500: '#2d194f',
    950: '#000000',
  },
}
SCSS
$custom: #2d194f;
$custom-light: #695781;
$custom-dark: #000000;
JSON
{
  "hex": "#2d194f",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 79
  },
  "hsl": {
    "h": 262.222,
    "s": 51.923,
    "l": 20.392
  },
  "oklch": {
    "l": 0.2731,
    "c": 0.0948,
    "h": 296.7
  },
  "luminance": 0.01818
}

Semantic roles & 50–950 ramp

primary
#2D194F
secondary
#6B853E
accent
#DB4CA6
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2D194F

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

Preview Lab → · Contrast checker → · Palette generator →

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