#2A175E#2A175E

#2A175E is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.118 H 288.6°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#2A175E
RGBrgb(42, 23, 94)
HSLhsl(256, 61%, 23%)
HSVhsv(256, 76%, 37%)
CMYKcmyk(55.3%, 75.5%, 0%, 63.1%)
CIE-LABlab(15.02, 29.08, -39.04)
CIE-LCHlch(15.02, 48.68, 306.68°)
OKLaboklab(28.02% 0.0378 -0.1121)
OKLCHoklch(28.02% 0.118 288.6)
XYZxyz(3.2810, 1.9130, 10.7839)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A175E #4B5E17
analogous
#17285E #2A175E #4D175E
triadic
#2A175E #5E2A17 #175E2A
tetradic
#2A175E #5E1728 #4B5E17 #175E4D
square
#2A175E #5E1728 #4B5E17 #175E4D
split-complementary
#2A175E #5E4D17 #285E17
monochromatic
#0B0619 #140B2D #2A175E #40238F #562FC0

Accessibility & contrast

On white

15.19
#2A175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2A175E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A175E
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A175E#FFFFFF#000000##FFFFFF
##2A175E1.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00245D
Tritanopia (blue-blind)
#172A38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a175e;
/* rgb */ color: rgb(42, 23, 94);
/* oklch */ color: oklch(28.0% 0.118 288.6);
Tailwind
colors: {
  custom: {
    50: '#6a568c',
    500: '#2a175e',
    950: '#000000',
  },
}
SCSS
$custom: #2a175e;
$custom-light: #6a568c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a175e",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 256.056,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28022,
    "c": 0.11832,
    "h": 288.6
  },
  "luminance": 0.01913
}

Semantic roles & 50–950 ramp

primary
#2A175E
secondary
#7D953C
accent
#E444B9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A175E

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

Preview Lab → · Contrast checker → · Palette generator →

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