#2A113F#2A113F

#2A113F is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.2% C 0.085 H 306.0°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#2A113F
RGBrgb(42, 17, 63)
HSLhsl(273, 58%, 16%)
HSVhsv(273, 73%, 25%)
CMYKcmyk(33.3%, 73%, 0%, 75.3%)
CIE-LABlab(10.94, 23.13, -24.38)
CIE-LCHlch(10.94, 33.61, 313.49°)
OKLaboklab(24.22% 0.0501 -0.069)
OKLCHoklch(24.22% 0.085 306)
XYZxyz(2.0523, 1.2520, 4.8352)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A113F #263F11
analogous
#13113F #2A113F #3F113D
triadic
#2A113F #3F2A11 #113F2A
tetradic
#2A113F #3F1311 #263F11 #113D3F
square
#2A113F #3F1311 #263F11 #113D3F
split-complementary
#2A113F #3D3F11 #113F13
monochromatic
#100718 #100718 #2A113F #4A1E6F #6A2B9F

Accessibility & contrast

On white

16.79
#2A113F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2A113F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A113F
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A113F#FFFFFF#000000##FFFFFF
##2A113F1.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D40
Deuteranopia (green-blind)
#071D3E
Tritanopia (blue-blind)
#261B26
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a113f;
/* rgb */ color: rgb(42, 17, 63);
/* oklch */ color: oklch(24.2% 0.085 306.0);
Tailwind
colors: {
  custom: {
    50: '#665174',
    500: '#2a113f',
    950: '#000000',
  },
}
SCSS
$custom: #2a113f;
$custom-light: #665174;
$custom-dark: #000000;
JSON
{
  "hex": "#2a113f",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 63
  },
  "hsl": {
    "h": 272.609,
    "s": 57.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24224,
    "c": 0.08531,
    "h": 306
  },
  "luminance": 0.01252
}

Semantic roles & 50–950 ramp

primary
#2A113F
secondary
#537833
accent
#E1478D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A113F

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

Preview Lab → · Contrast checker → · Palette generator →

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