#2D175E#2D175E

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

Color values

HEX#2D175E
RGBrgb(45, 23, 94)
HSLhsl(259, 61%, 23%)
HSVhsv(259, 76%, 37%)
CMYKcmyk(52.1%, 75.5%, 0%, 63.1%)
CIE-LABlab(15.38, 29.64, -38.46)
CIE-LCHlch(15.38, 48.56, 307.63°)
OKLaboklab(28.35% 0.0426 -0.1103)
OKLCHoklch(28.35% 0.118 291.1)
XYZxyz(3.4084, 1.9787, 10.7898)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D175E #485E17
analogous
#17245E #2D175E #51175E
triadic
#2D175E #5E2D17 #175E2D
tetradic
#2D175E #5E1724 #485E17 #175E51
square
#2D175E #5E1724 #485E17 #175E51
split-complementary
#2D175E #5E5117 #245E17
monochromatic
#0C0619 #150B2D #2D175E #45238F #5C2FC0

Accessibility & contrast

On white

15.05
#2D175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D175E
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D175E#FFFFFF#000000##FFFFFF
##2D175E1.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002860
Deuteranopia (green-blind)
#00255D
Tritanopia (blue-blind)
#1D2938
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d175e;
/* rgb */ color: rgb(45, 23, 94);
/* oklch */ color: oklch(28.4% 0.118 291.1);
Tailwind
colors: {
  custom: {
    50: '#6c568c',
    500: '#2d175e',
    950: '#000000',
  },
}
SCSS
$custom: #2d175e;
$custom-light: #6c568c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d175e",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 258.592,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28354,
    "c": 0.11826,
    "h": 291.1
  },
  "luminance": 0.01979
}

Semantic roles & 50–950 ramp

primary
#2D175E
secondary
#79953C
accent
#E444B2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D175E

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

Preview Lab → · Contrast checker → · Palette generator →

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