#2A175A#2A175A

#2A175A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.113 H 290.0°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#2A175A
RGBrgb(42, 23, 90)
HSLhsl(257, 59%, 22%)
HSVhsv(257, 74%, 35%)
CMYKcmyk(53.3%, 74.4%, 0%, 64.7%)
CIE-LABlab(14.64, 27.78, -36.99)
CIE-LCHlch(14.64, 46.26, 306.91°)
OKLaboklab(27.63% 0.0386 -0.1061)
OKLCHoklch(27.63% 0.113 290)
XYZxyz(3.1062, 1.8431, 9.8630)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A175A #475A17
analogous
#17265A #2A175A #4C175A
triadic
#2A175A #5A2A17 #175A2A
tetradic
#2A175A #5A1726 #475A17 #175A4C
square
#2A175A #5A1726 #475A17 #175A4C
split-complementary
#2A175A #5A4C17 #265A17
monochromatic
#0B0618 #130B29 #2A175A #41238B #5730BB

Accessibility & contrast

On white

15.34
#2A175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2A175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A175A
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A175A#FFFFFF#000000##FFFFFF
##2A175A1.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002359
Tritanopia (blue-blind)
#1A2836
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a175a;
/* rgb */ color: rgb(42, 23, 90);
/* oklch */ color: oklch(27.6% 0.113 290.0);
Tailwind
colors: {
  custom: {
    50: '#695689',
    500: '#2a175a',
    950: '#000000',
  },
}
SCSS
$custom: #2a175a;
$custom-light: #695689;
$custom-dark: #000000;
JSON
{
  "hex": "#2a175a",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 257.015,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.2763,
    "c": 0.11291,
    "h": 290
  },
  "luminance": 0.01843
}

Semantic roles & 50–950 ramp

primary
#2A175A
secondary
#79913C
accent
#E245B6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A175A

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

Preview Lab → · Contrast checker → · Palette generator →

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