#2A0F3E#2A0F3E

#2A0F3E is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.8% C 0.087 H 307.4°. Best body text is #FFFFFF at 16.98:1 contrast (WCAG AA passes).

Color values

HEX#2A0F3E
RGBrgb(42, 15, 62)
HSLhsl(274, 61%, 15%)
HSVhsv(274, 76%, 24%)
CMYKcmyk(32.3%, 75.8%, 0%, 75.7%)
CIE-LABlab(10.42, 24.04, -24.50)
CIE-LCHlch(10.42, 34.32, 314.45°)
OKLaboklab(23.83% 0.053 -0.0694)
OKLCHoklch(23.83% 0.087 307.4)
XYZxyz(1.9950, 1.1817, 4.6795)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F3E #233E0F
analogous
#120F3E #2A0F3E #3E0F3A
triadic
#2A0F3E #3E2A0F #0F3E2A
tetradic
#2A0F3E #3E120F #233E0F #0F3A3E
square
#2A0F3E #3E120F #233E0F #0F3A3E
split-complementary
#2A0F3E #3A3E0F #0F3E12
monochromatic
#110619 #110619 #2A0F3E #4B1B6F #6D27A1

Accessibility & contrast

On white

16.98
#2A0F3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2A0F3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0F3E
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F3E#FFFFFF#000000##FFFFFF
##2A0F3E1.0016.981.2416.98
#FFFFFF16.981.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3F
Deuteranopia (green-blind)
#051D3D
Tritanopia (blue-blind)
#271924
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2a0f3e;
/* rgb */ color: rgb(42, 15, 62);
/* oklch */ color: oklch(23.8% 0.087 307.4);
Tailwind
colors: {
  custom: {
    50: '#664f74',
    500: '#2a0f3e',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f3e;
$custom-light: #664f74;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f3e",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 62
  },
  "hsl": {
    "h": 274.468,
    "s": 61.039,
    "l": 15.098
  },
  "oklch": {
    "l": 0.23828,
    "c": 0.08731,
    "h": 307.4
  },
  "luminance": 0.01182
}

Semantic roles & 50–950 ramp

primary
#2A0F3E
secondary
#4F7830
accent
#E44488
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A0F3E

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

Preview Lab → · Contrast checker → · Palette generator →

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