#2D195A#2D195A

#2D195A is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.110 H 292.0°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#2D195A
RGBrgb(45, 25, 90)
HSLhsl(258, 57%, 23%)
HSVhsv(258, 72%, 35%)
CMYKcmyk(50%, 72.2%, 0%, 64.7%)
CIE-LABlab(15.44, 27.18, -35.67)
CIE-LCHlch(15.44, 44.85, 307.30°)
OKLaboklab(28.29% 0.0412 -0.1021)
OKLCHoklch(28.29% 0.11 292)
XYZxyz(3.2748, 1.9912, 9.8827)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D195A #465A19
analogous
#19255A #2D195A #4E195A
triadic
#2D195A #5A2D19 #195A2D
tetradic
#2D195A #5A1925 #465A19 #195A4E
square
#2D195A #5A1925 #465A19 #195A4E
split-complementary
#2D195A #5A4E19 #255A19
monochromatic
#0C0718 #150C2A #2D195A #45268A #5D34BA

Accessibility & contrast

On white

15.02
#2D195A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2D195A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D195A
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D195A#FFFFFF#000000##FFFFFF
##2D195A1.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285C
Deuteranopia (green-blind)
#002559
Tritanopia (blue-blind)
#1F2937
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d195a;
/* rgb */ color: rgb(45, 25, 90);
/* oklch */ color: oklch(28.3% 0.110 292.0);
Tailwind
colors: {
  custom: {
    50: '#6b5789',
    500: '#2d195a',
    950: '#000000',
  },
}
SCSS
$custom: #2d195a;
$custom-light: #6b5789;
$custom-dark: #000000;
JSON
{
  "hex": "#2d195a",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 90
  },
  "hsl": {
    "h": 258.462,
    "s": 56.522,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28287,
    "c": 0.11013,
    "h": 292
  },
  "luminance": 0.01991
}

Semantic roles & 50–950 ramp

primary
#2D195A
secondary
#77903E
accent
#E048B1
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2D195A

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

Preview Lab → · Contrast checker → · Palette generator →

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