#2D195E#2D195E

#2D195E is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.116 H 290.5°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#2D195E
RGBrgb(45, 25, 94)
HSLhsl(257, 58%, 23%)
HSVhsv(257, 73%, 37%)
CMYKcmyk(52.1%, 73.4%, 0%, 63.1%)
CIE-LABlab(15.81, 28.45, -37.75)
CIE-LCHlch(15.81, 47.27, 307.00°)
OKLaboklab(28.66% 0.0405 -0.1082)
OKLCHoklch(28.66% 0.116 290.5)
XYZxyz(3.4496, 2.0612, 10.8036)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D195E #4A5E19
analogous
#19275E #2D195E #4F195E
triadic
#2D195E #5E2D19 #195E2D
tetradic
#2D195E #5E1927 #4A5E19 #195E4F
square
#2D195E #5E1927 #4A5E19 #195E4F
split-complementary
#2D195E #5E4F19 #275E19
monochromatic
#0C0618 #160C2E #2D195E #44268E #5B33BF

Accessibility & contrast

On white

14.87
#2D195E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D195E
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D195E#FFFFFF#000000##FFFFFF
##2D195E1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002960
Deuteranopia (green-blind)
#00265D
Tritanopia (blue-blind)
#1D2A39
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d195e;
/* rgb */ color: rgb(45, 25, 94);
/* oklch */ color: oklch(28.7% 0.116 290.5);
Tailwind
colors: {
  custom: {
    50: '#6b578c',
    500: '#2d195e',
    950: '#000000',
  },
}
SCSS
$custom: #2d195e;
$custom-light: #6b578c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d195e",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 94
  },
  "hsl": {
    "h": 257.391,
    "s": 57.983,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28661,
    "c": 0.11558,
    "h": 290.5
  },
  "luminance": 0.02061
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D195E

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

Preview Lab → · Contrast checker → · Palette generator →

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