#2A173E#2A173E

#2A173E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.2% C 0.073 H 304.1°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#2A173E
RGBrgb(42, 23, 62)
HSLhsl(269, 46%, 17%)
HSVhsv(269, 63%, 24%)
CMYKcmyk(32.3%, 62.9%, 0%, 75.7%)
CIE-LABlab(12.30, 18.98, -21.48)
CIE-LCHlch(12.30, 28.66, 311.46°)
OKLaboklab(25.2% 0.041 -0.0605)
OKLCHoklch(25.2% 0.073 304.1)
XYZxyz(2.1306, 1.4528, 4.7247)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A173E #2B3E17
analogous
#17183E #2A173E #3E173E
triadic
#2A173E #3E2A17 #173E2A
tetradic
#2A173E #3E1718 #2B3E17 #173E3E
square
#2A173E #3E1718 #2B3E17 #173E3E
split-complementary
#2A173E #3E3E17 #183E17
monochromatic
#0F0816 #0F0816 #2A173E #48286B #663897

Accessibility & contrast

On white

16.27
#2A173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2A173E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A173E
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A173E#FFFFFF#000000##FFFFFF
##2A173E1.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09203F
Deuteranopia (green-blind)
#0F203D
Tritanopia (blue-blind)
#261E27
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a173e;
/* rgb */ color: rgb(42, 23, 62);
/* oklch */ color: oklch(25.2% 0.073 304.1);
Tailwind
colors: {
  custom: {
    50: '#655573',
    500: '#2a173e',
    950: '#000000',
  },
}
SCSS
$custom: #2a173e;
$custom-light: #655573;
$custom-dark: #000000;
JSON
{
  "hex": "#2a173e",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 269.231,
    "s": 45.882,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25199,
    "c": 0.07313,
    "h": 304.1
  },
  "luminance": 0.01453
}

Semantic roles & 50–950 ramp

primary
#2A173E
secondary
#59753C
accent
#D65296
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2A173E

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

Preview Lab → · Contrast checker → · Palette generator →

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