#2A196C#2A196C

#2A196C is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.7% C 0.134 H 284.0°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#2A196C
RGBrgb(42, 25, 108)
HSLhsl(252, 62%, 26%)
HSVhsv(252, 77%, 42%)
CMYKcmyk(61.1%, 76.9%, 0%, 57.6%)
CIE-LABlab(16.84, 32.47, -45.30)
CIE-LCHlch(16.84, 55.73, 305.63°)
OKLaboklab(29.74% 0.0326 -0.1305)
OKLCHoklch(29.74% 0.134 284)
XYZxyz(4.0084, 2.2700, 14.4114)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A196C #5B6C19
analogous
#19316C #2A196C #53196C
triadic
#2A196C #6C2A19 #196C2A
tetradic
#2A196C #6C1931 #5B6C19 #196C53
square
#2A196C #6C1931 #5B6C19 #196C53
split-complementary
#2A196C #6C5319 #316C19
monochromatic
#0A0619 #170D3A #2A196C #3D259E #5130CF

Accessibility & contrast

On white

14.44
#2A196C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A196C
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A196C#FFFFFF#000000##FFFFFF
##2A196C1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00276A
Tritanopia (blue-blind)
#053041
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a196c;
/* rgb */ color: rgb(42, 25, 108);
/* oklch */ color: oklch(29.7% 0.134 284.0);
Tailwind
colors: {
  custom: {
    50: '#6c5897',
    500: '#2a196c',
    950: '#000000',
  },
}
SCSS
$custom: #2a196c;
$custom-light: #6c5897;
$custom-dark: #000000;
JSON
{
  "hex": "#2a196c",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 108
  },
  "hsl": {
    "h": 252.289,
    "s": 62.406,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29742,
    "c": 0.13449,
    "h": 284
  },
  "luminance": 0.0227
}

Semantic roles & 50–950 ramp

primary
#2A196C
secondary
#8DA13F
accent
#E542C4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2A196C

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

Preview Lab → · Contrast checker → · Palette generator →

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