#2A113E#2A113E

#2A113E is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.084 H 306.7°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#2A113E
RGBrgb(42, 17, 62)
HSLhsl(273, 57%, 15%)
HSVhsv(273, 73%, 24%)
CMYKcmyk(32.3%, 72.6%, 0%, 75.7%)
CIE-LABlab(10.86, 22.84, -23.80)
CIE-LCHlch(10.86, 32.99, 313.82°)
OKLaboklab(24.14% 0.0502 -0.0673)
OKLCHoklch(24.14% 0.084 306.7)
XYZxyz(2.0246, 1.2410, 4.6894)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A113E #253E11
analogous
#13113E #2A113E #3E113B
triadic
#2A113E #3E2A11 #113E2A
tetradic
#2A113E #3E1311 #253E11 #113B3E
square
#2A113E #3E1311 #253E11 #113B3E
split-complementary
#2A113E #3B3E11 #113E13
monochromatic
#100718 #100718 #2A113E #4B1E6E #6B2B9E

Accessibility & contrast

On white

16.82
#2A113E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A113E
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A113E#FFFFFF#000000##FFFFFF
##2A113E1.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3F
Deuteranopia (green-blind)
#081D3D
Tritanopia (blue-blind)
#271A25
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a113e;
/* rgb */ color: rgb(42, 17, 62);
/* oklch */ color: oklch(24.1% 0.084 306.7);
Tailwind
colors: {
  custom: {
    50: '#665173',
    500: '#2a113e',
    950: '#000000',
  },
}
SCSS
$custom: #2a113e;
$custom-light: #665173;
$custom-dark: #000000;
JSON
{
  "hex": "#2a113e",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 62
  },
  "hsl": {
    "h": 273.333,
    "s": 56.962,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24141,
    "c": 0.08398,
    "h": 306.7
  },
  "luminance": 0.01241
}

Semantic roles & 50–950 ramp

primary
#2A113E
secondary
#527733
accent
#E0488B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A113E

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

Preview Lab → · Contrast checker → · Palette generator →

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