#2D195B#2D195B

#2D195B is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.112 H 291.6°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#2D195B
RGBrgb(45, 25, 91)
HSLhsl(258, 57%, 23%)
HSVhsv(258, 73%, 36%)
CMYKcmyk(50.5%, 72.5%, 0%, 64.3%)
CIE-LABlab(15.53, 27.49, -36.20)
CIE-LCHlch(15.53, 45.45, 307.22°)
OKLaboklab(28.38% 0.0411 -0.1037)
OKLCHoklch(28.38% 0.112 291.6)
XYZxyz(3.3176, 2.0084, 10.1084)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D195B #475B19
analogous
#19265B #2D195B #4E195B
triadic
#2D195B #5B2D19 #195B2D
tetradic
#2D195B #5B1926 #475B19 #195B4E
square
#2D195B #5B1926 #475B19 #195B4E
split-complementary
#2D195B #5B4E19 #265B19
monochromatic
#0C0718 #150C2B #2D195B #45268B #5C33BB

Accessibility & contrast

On white

14.98
#2D195B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D195B
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D195B#FFFFFF#000000##FFFFFF
##2D195B1.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#00255A
Tritanopia (blue-blind)
#1F2937
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d195b;
/* rgb */ color: rgb(45, 25, 91);
/* oklch */ color: oklch(28.4% 0.112 291.6);
Tailwind
colors: {
  custom: {
    50: '#6b578a',
    500: '#2d195b',
    950: '#000000',
  },
}
SCSS
$custom: #2d195b;
$custom-light: #6b578a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d195b",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 91
  },
  "hsl": {
    "h": 258.182,
    "s": 56.897,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28379,
    "c": 0.1115,
    "h": 291.6
  },
  "luminance": 0.02008
}

Semantic roles & 50–950 ramp

primary
#2D195B
secondary
#78913F
accent
#E048B2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D195B

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

Preview Lab → · Contrast checker → · Palette generator →

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