#2A183E#2A183E

#2A183E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.4% C 0.071 H 303.6°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#2A183E
RGBrgb(42, 24, 62)
HSLhsl(268, 44%, 17%)
HSVhsv(268, 61%, 24%)
CMYKcmyk(32.3%, 61.3%, 0%, 75.7%)
CIE-LABlab(12.57, 18.30, -21.06)
CIE-LCHlch(12.57, 27.90, 310.98°)
OKLaboklab(25.39% 0.0394 -0.0593)
OKLCHoklch(25.39% 0.071 303.6)
XYZxyz(2.1508, 1.4933, 4.7314)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A183E #2C3E18
analogous
#18193E #2A183E #3D183E
triadic
#2A183E #3E2A18 #183E2A
tetradic
#2A183E #3E1819 #2C3E18 #183E3D
square
#2A183E #3E1819 #2C3E18 #183E3D
split-complementary
#2A183E #3E3D18 #193E18
monochromatic
#0F0916 #0F0916 #2A183E #48296A #663A96

Accessibility & contrast

On white

16.17
#2A183E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2A183E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A183E
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A183E#FFFFFF#000000##FFFFFF
##2A183E1.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B203F
Deuteranopia (green-blind)
#10213D
Tritanopia (blue-blind)
#261F28
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a183e;
/* rgb */ color: rgb(42, 24, 62);
/* oklch */ color: oklch(25.4% 0.071 303.6);
Tailwind
colors: {
  custom: {
    50: '#655573',
    500: '#2a183e',
    950: '#000000',
  },
}
SCSS
$custom: #2a183e;
$custom-light: #655573;
$custom-dark: #000000;
JSON
{
  "hex": "#2a183e",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 62
  },
  "hsl": {
    "h": 268.421,
    "s": 44.186,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25391,
    "c": 0.07122,
    "h": 303.6
  },
  "luminance": 0.01493
}

Semantic roles & 50–950 ramp

primary
#2A183E
secondary
#5A743D
accent
#D45497
background
#F6F5F7
surface
#EBE8ED
border
#C6C4C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2A183E

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

Preview Lab → · Contrast checker → · Palette generator →

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