#2D195F#2D195F

#2D195F is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.117 H 290.2°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#2D195F
RGBrgb(45, 25, 95)
HSLhsl(257, 58%, 24%)
HSVhsv(257, 74%, 37%)
CMYKcmyk(52.6%, 73.7%, 0%, 62.7%)
CIE-LABlab(15.90, 28.77, -38.27)
CIE-LCHlch(15.90, 47.88, 306.94°)
OKLaboklab(28.76% 0.0403 -0.1098)
OKLCHoklch(28.76% 0.117 290.2)
XYZxyz(3.4948, 2.0792, 11.0414)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D195F #4B5F19
analogous
#19285F #2D195F #50195F
triadic
#2D195F #5F2D19 #195F2D
tetradic
#2D195F #5F1928 #4B5F19 #195F50
square
#2D195F #5F1928 #4B5F19 #195F50
split-complementary
#2D195F #5F5019 #285F19
monochromatic
#0B0618 #160C2F #2D195F #44268F #5B32C0

Accessibility & contrast

On white

14.83
#2D195F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2D195F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D195F
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D195F#FFFFFF#000000##FFFFFF
##2D195F1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#00265E
Tritanopia (blue-blind)
#1C2B3A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d195f;
/* rgb */ color: rgb(45, 25, 95);
/* oklch */ color: oklch(28.8% 0.117 290.2);
Tailwind
colors: {
  custom: {
    50: '#6c578d',
    500: '#2d195f',
    950: '#000000',
  },
}
SCSS
$custom: #2d195f;
$custom-light: #6c578d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d195f",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 95
  },
  "hsl": {
    "h": 257.143,
    "s": 58.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28756,
    "c": 0.11693,
    "h": 290.2
  },
  "luminance": 0.02079
}

Semantic roles & 50–950 ramp

primary
#2D195F
secondary
#7C953F
accent
#E246B5
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D195F

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

Preview Lab → · Contrast checker → · Palette generator →

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