#2A203E#2A203E

#2A203E is a dark, muted violet. Relative luminance 0.019; OKLCH L 27.1% C 0.055 H 298.0°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#2A203E
RGBrgb(42, 32, 62)
HSLhsl(260, 32%, 18%)
HSVhsv(260, 48%, 24%)
CMYKcmyk(32.3%, 48.4%, 0%, 75.7%)
CIE-LABlab(14.81, 12.68, -17.51)
CIE-LCHlch(14.81, 21.62, 305.92°)
OKLaboklab(27.07% 0.026 -0.049)
OKLCHoklch(27.07% 0.055 298)
XYZxyz(2.3407, 1.8730, 4.7947)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A203E #343E20
analogous
#20253E #2A203E #39203E
triadic
#2A203E #3E2A20 #203E2A
tetradic
#2A203E #3E2025 #343E20 #203E39
square
#2A203E #3E2025 #343E20 #203E39
split-complementary
#2A203E #3E3920 #253E20
monochromatic
#0E0A14 #0F0B16 #2A203E #453566 #614A8F

Accessibility & contrast

On white

15.28
#2A203E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2A203E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A203E
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A203E#FFFFFF#000000##FFFFFF
##2A203E1.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18253F
Deuteranopia (green-blind)
#19253D
Tritanopia (blue-blind)
#26252C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a203e;
/* rgb */ color: rgb(42, 32, 62);
/* oklch */ color: oklch(27.1% 0.055 298.0);
Tailwind
colors: {
  custom: {
    50: '#645b73',
    500: '#2a203e',
    950: '#000000',
  },
}
SCSS
$custom: #2a203e;
$custom-light: #645b73;
$custom-dark: #000000;
JSON
{
  "hex": "#2a203e",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 62
  },
  "hsl": {
    "h": 260,
    "s": 31.915,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27066,
    "c": 0.05546,
    "h": 298
  },
  "luminance": 0.01873
}

Semantic roles & 50–950 ramp

primary
#2A203E
secondary
#647248
accent
#C860A5
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050408
muted
#7A797B

Preview Lab

Preview with #2A203E

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

Preview Lab → · Contrast checker → · Palette generator →

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