#2A196E#2A196E

#2A196E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.137 H 283.5°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#2A196E
RGBrgb(42, 25, 110)
HSLhsl(252, 63%, 26%)
HSVhsv(252, 77%, 43%)
CMYKcmyk(61.8%, 77.3%, 0%, 56.9%)
CIE-LABlab(17.05, 33.12, -46.26)
CIE-LCHlch(17.05, 56.90, 305.60°)
OKLaboklab(29.95% 0.0321 -0.1333)
OKLCHoklch(29.95% 0.137 283.5)
XYZxyz(4.1161, 2.3130, 14.9784)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A196E #5D6E19
analogous
#19336E #2A196E #55196E
triadic
#2A196E #6E2A19 #196E2A
tetradic
#2A196E #6E1933 #5D6E19 #196E55
square
#2A196E #6E1933 #5D6E19 #196E55
split-complementary
#2A196E #6E5519 #336E19
monochromatic
#0A0619 #170E3C #2A196E #3D24A0 #5131D0

Accessibility & contrast

On white

14.36
#2A196E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2A196E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A196E
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A196E#FFFFFF#000000##FFFFFF
##2A196E1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#013142
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a196e;
/* rgb */ color: rgb(42, 25, 110);
/* oklch */ color: oklch(30.0% 0.137 283.5);
Tailwind
colors: {
  custom: {
    50: '#6d5898',
    500: '#2a196e',
    950: '#000000',
  },
}
SCSS
$custom: #2a196e;
$custom-light: #6d5898;
$custom-dark: #000000;
JSON
{
  "hex": "#2a196e",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 110
  },
  "hsl": {
    "h": 252,
    "s": 62.963,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29951,
    "c": 0.13711,
    "h": 283.5
  },
  "luminance": 0.02313
}

Semantic roles & 50–950 ramp

primary
#2A196E
secondary
#8FA33F
accent
#E642C5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2A196E

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

Preview Lab → · Contrast checker → · Palette generator →

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