#2A163E#2A163E

#2A163E is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.075 H 304.6°. Best body text is #FFFFFF at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#2A163E
RGBrgb(42, 22, 62)
HSLhsl(270, 48%, 16%)
HSVhsv(270, 65%, 24%)
CMYKcmyk(32.3%, 64.5%, 0%, 75.7%)
CIE-LABlab(12.05, 19.64, -21.89)
CIE-LCHlch(12.05, 29.41, 311.91°)
OKLaboklab(25.01% 0.0426 -0.0617)
OKLCHoklch(25.01% 0.075 304.6)
XYZxyz(2.1111, 1.4139, 4.7182)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A163E #2A3E16
analogous
#16163E #2A163E #3E163E
triadic
#2A163E #3E2A16 #163E2A
tetradic
#2A163E #3E1616 #2A3E16 #163E3E
square
#2A163E #3E1616 #2A3E16 #163E3E
split-complementary
#2A163E #3E3E16 #163E16
monochromatic
#0F0817 #0F0817 #2A163E #49266B #673698

Accessibility & contrast

On white

16.37
#2A163E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2A163E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A163E
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A163E#FFFFFF#000000##FFFFFF
##2A163E1.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071F3F
Deuteranopia (green-blind)
#0E203D
Tritanopia (blue-blind)
#271E27
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a163e;
/* rgb */ color: rgb(42, 22, 62);
/* oklch */ color: oklch(25.0% 0.075 304.6);
Tailwind
colors: {
  custom: {
    50: '#655473',
    500: '#2a163e',
    950: '#000000',
  },
}
SCSS
$custom: #2a163e;
$custom-light: #655473;
$custom-dark: #000000;
JSON
{
  "hex": "#2a163e",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 62
  },
  "hsl": {
    "h": 270,
    "s": 47.619,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25011,
    "c": 0.07502,
    "h": 304.6
  },
  "luminance": 0.01414
}

Semantic roles & 50–950 ramp

primary
#2A163E
secondary
#58753B
accent
#D75194
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A163E

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

Preview Lab → · Contrast checker → · Palette generator →

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