#2A196B#2A196B

#2A196B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.133 H 284.3°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#2A196B
RGBrgb(42, 25, 107)
HSLhsl(252, 62%, 26%)
HSVhsv(252, 77%, 42%)
CMYKcmyk(60.7%, 76.6%, 0%, 58%)
CIE-LABlab(16.74, 32.14, -44.81)
CIE-LCHlch(16.74, 55.15, 305.65°)
OKLaboklab(29.64% 0.0329 -0.129)
OKLCHoklch(29.64% 0.133 284.3)
XYZxyz(3.9555, 2.2488, 14.1327)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A196B #5A6B19
analogous
#19316B #2A196B #53196B
triadic
#2A196B #6B2A19 #196B2A
tetradic
#2A196B #6B1931 #5A6B19 #196B53
square
#2A196B #6B1931 #5A6B19 #196B53
split-complementary
#2A196B #6B5319 #316B19
monochromatic
#0A0619 #170D39 #2A196B #3D259D #5130CE

Accessibility & contrast

On white

14.48
#2A196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2A196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A196B
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A196B#FFFFFF#000000##FFFFFF
##2A196B1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6D
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#072F40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a196b;
/* rgb */ color: rgb(42, 25, 107);
/* oklch */ color: oklch(29.6% 0.133 284.3);
Tailwind
colors: {
  custom: {
    50: '#6c5896',
    500: '#2a196b',
    950: '#000000',
  },
}
SCSS
$custom: #2a196b;
$custom-light: #6c5896;
$custom-dark: #000000;
JSON
{
  "hex": "#2a196b",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 252.439,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29639,
    "c": 0.13317,
    "h": 284.3
  },
  "luminance": 0.02249
}

Semantic roles & 50–950 ramp

primary
#2A196B
secondary
#8CA13F
accent
#E543C3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A196B

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

Preview Lab → · Contrast checker → · Palette generator →

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