#2A195B#2A195B

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

Color values

HEX#2A195B
RGBrgb(42, 25, 91)
HSLhsl(255, 57%, 23%)
HSVhsv(255, 73%, 36%)
CMYKcmyk(53.8%, 72.5%, 0%, 64.3%)
CIE-LABlab(15.18, 26.88, -36.78)
CIE-LCHlch(15.18, 45.55, 306.16°)
OKLaboklab(28.05% 0.0362 -0.1055)
OKLCHoklch(28.05% 0.112 289)
XYZxyz(3.1903, 1.9427, 10.1024)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A195B #4A5B19
analogous
#19295B #2A195B #4B195B
triadic
#2A195B #5B2A19 #195B2A
tetradic
#2A195B #5B1929 #4A5B19 #195B4B
square
#2A195B #5B1929 #4A5B19 #195B4B
split-complementary
#2A195B #5B4B19 #295B19
monochromatic
#0B0718 #140C2B #2A195B #40268B #5633BB

Accessibility & contrast

On white

15.12
#2A195B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2A195B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A195B
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A195B#FFFFFF#000000##FFFFFF
##2A195B1.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#192A37
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a195b;
/* rgb */ color: rgb(42, 25, 91);
/* oklch */ color: oklch(28.0% 0.112 289.0);
Tailwind
colors: {
  custom: {
    50: '#69578a',
    500: '#2a195b',
    950: '#000000',
  },
}
SCSS
$custom: #2a195b;
$custom-light: #69578a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a195b",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 91
  },
  "hsl": {
    "h": 255.455,
    "s": 56.897,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28048,
    "c": 0.11154,
    "h": 289
  },
  "luminance": 0.01943
}

Semantic roles & 50–950 ramp

primary
#2A195B
secondary
#7C913F
accent
#E048B9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A195B

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

Preview Lab → · Contrast checker → · Palette generator →

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