#2A196F#2A196F

#2A196F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.138 H 283.3°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#2A196F
RGBrgb(42, 25, 111)
HSLhsl(252, 63%, 27%)
HSVhsv(252, 77%, 44%)
CMYKcmyk(62.2%, 77.5%, 0%, 56.5%)
CIE-LABlab(17.15, 33.45, -46.74)
CIE-LCHlch(17.15, 57.48, 305.59°)
OKLaboklab(30.06% 0.0319 -0.1347)
OKLCHoklch(30.06% 0.138 283.3)
XYZxyz(4.1708, 2.3349, 15.2667)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A196F #5E6F19
analogous
#19336F #2A196F #55196F
triadic
#2A196F #6F2A19 #196F2A
tetradic
#2A196F #6F1933 #5E6F19 #196F55
square
#2A196F #6F1933 #5E6F19 #196F55
split-complementary
#2A196F #6F5519 #336F19
monochromatic
#090619 #170E3D #2A196F #3D24A1 #5132D1

Accessibility & contrast

On white

14.31
#2A196F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2A196F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A196F
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A196F#FFFFFF#000000##FFFFFF
##2A196F1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a196f;
/* rgb */ color: rgb(42, 25, 111);
/* oklch */ color: oklch(30.1% 0.138 283.3);
Tailwind
colors: {
  custom: {
    50: '#6d5899',
    500: '#2a196f',
    950: '#000000',
  },
}
SCSS
$custom: #2a196f;
$custom-light: #6d5899;
$custom-dark: #000000;
JSON
{
  "hex": "#2a196f",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 111
  },
  "hsl": {
    "h": 251.86,
    "s": 63.235,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30056,
    "c": 0.13841,
    "h": 283.3
  },
  "luminance": 0.02335
}

Semantic roles & 50–950 ramp

primary
#2A196F
secondary
#90A43F
accent
#E642C6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2A196F

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

Preview Lab → · Contrast checker → · Palette generator →

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