#2D195D#2D195D

#2D195D is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.6% C 0.114 H 290.9°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#2D195D
RGBrgb(45, 25, 93)
HSLhsl(258, 58%, 23%)
HSVhsv(258, 73%, 36%)
CMYKcmyk(51.6%, 73.1%, 0%, 63.5%)
CIE-LABlab(15.71, 28.13, -37.24)
CIE-LCHlch(15.71, 46.67, 307.07°)
OKLaboklab(28.57% 0.0407 -0.1067)
OKLCHoklch(28.57% 0.114 290.9)
XYZxyz(3.4050, 2.0433, 10.5688)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D195D #495D19
analogous
#19275D #2D195D #4F195D
triadic
#2D195D #5D2D19 #195D2D
tetradic
#2D195D #5D1927 #495D19 #195D4F
square
#2D195D #5D1927 #495D19 #195D4F
split-complementary
#2D195D #5D4F19 #275D19
monochromatic
#0C0618 #160C2D #2D195D #44268D #5C33BD

Accessibility & contrast

On white

14.91
#2D195D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2D195D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D195D
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D195D#FFFFFF#000000##FFFFFF
##2D195D1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#00265C
Tritanopia (blue-blind)
#1D2A38
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d195d;
/* rgb */ color: rgb(45, 25, 93);
/* oklch */ color: oklch(28.6% 0.114 290.9);
Tailwind
colors: {
  custom: {
    50: '#6b578c',
    500: '#2d195d',
    950: '#000000',
  },
}
SCSS
$custom: #2d195d;
$custom-light: #6b578c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d195d",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 93
  },
  "hsl": {
    "h": 257.647,
    "s": 57.627,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28567,
    "c": 0.11423,
    "h": 290.9
  },
  "luminance": 0.02043
}

Semantic roles & 50–950 ramp

primary
#2D195D
secondary
#7A933F
accent
#E147B4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D195D

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

Preview Lab → · Contrast checker → · Palette generator →

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