#2A073F#2A073F

#2A073F is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.100 H 308.8°. Best body text is #FFFFFF at 17.49:1 contrast (WCAG AA passes).

Color values

HEX#2A073F
RGBrgb(42, 7, 63)
HSLhsl(278, 80%, 14%)
HSVhsv(278, 89%, 25%)
CMYKcmyk(33.3%, 88.9%, 0%, 75.3%)
CIE-LABlab(9.02, 28.52, -27.49)
CIE-LCHlch(9.02, 39.61, 316.06°)
OKLaboklab(22.86% 0.0627 -0.0781)
OKLCHoklch(22.86% 0.1 308.8)
XYZxyz(1.9278, 1.0031, 4.7937)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A073F #1C3F07
analogous
#0E073F #2A073F #3F0738
triadic
#2A073F #3F2A07 #073F2A
tetradic
#2A073F #3F0E07 #1C3F07 #07383F
square
#2A073F #3F0E07 #1C3F07 #07383F
split-complementary
#2A073F #383F07 #073F0E
monochromatic
#12031C #12031C #2A073F #4F0D76 #7313AD

Accessibility & contrast

On white

17.49
#2A073F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#2A073F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A073F
17.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A073F#FFFFFF#000000##FFFFFF
##2A073F1.0017.491.2017.49
#FFFFFF17.491.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001841
Deuteranopia (green-blind)
#001A3E
Tritanopia (blue-blind)
#271523
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2a073f;
/* rgb */ color: rgb(42, 7, 63);
/* oklch */ color: oklch(22.9% 0.100 308.8);
Tailwind
colors: {
  custom: {
    50: '#674b74',
    500: '#2a073f',
    950: '#000000',
  },
}
SCSS
$custom: #2a073f;
$custom-light: #674b74;
$custom-dark: #000000;
JSON
{
  "hex": "#2a073f",
  "rgb": {
    "r": 42,
    "g": 7,
    "b": 63
  },
  "hsl": {
    "h": 277.5,
    "s": 80,
    "l": 13.725
  },
  "oklch": {
    "l": 0.22859,
    "c": 0.10012,
    "h": 308.8
  },
  "luminance": 0.01003
}

Semantic roles & 50–950 ramp

primary
#2A073F
secondary
#467E24
accent
#F6317B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A073F

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

Preview Lab → · Contrast checker → · Palette generator →

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