#2A0E40#2A0E40

#2A0E40 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.091 H 306.3°. Best body text is #FFFFFF at 17.00:1 contrast (WCAG AA passes).

Color values

HEX#2A0E40
RGBrgb(42, 14, 64)
HSLhsl(274, 64%, 15%)
HSVhsv(274, 78%, 25%)
CMYKcmyk(34.4%, 78.1%, 0%, 74.9%)
CIE-LABlab(10.38, 25.17, -25.99)
CIE-LCHlch(10.38, 36.18, 314.08°)
OKLaboklab(23.85% 0.0541 -0.0737)
OKLCHoklch(23.85% 0.091 306.3)
XYZxyz(2.0371, 1.1765, 4.9693)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0E40 #24400E
analogous
#110E40 #2A0E40 #400E3D
triadic
#2A0E40 #402A0E #0E402A
tetradic
#2A0E40 #40110E #24400E #0E3D40
square
#2A0E40 #40110E #24400E #0E3D40
split-complementary
#2A0E40 #3D400E #0E4011
monochromatic
#100519 #100519 #2A0E40 #4B1972 #6C24A4

Accessibility & contrast

On white

17.00
#2A0E40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0E40
17.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0E40#FFFFFF#000000##FFFFFF
##2A0E401.0017.001.2417.00
#FFFFFF17.001.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF17.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B41
Deuteranopia (green-blind)
#021C3F
Tritanopia (blue-blind)
#261925
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2a0e40;
/* rgb */ color: rgb(42, 14, 64);
/* oklch */ color: oklch(23.9% 0.091 306.3);
Tailwind
colors: {
  custom: {
    50: '#664f75',
    500: '#2a0e40',
    950: '#000000',
  },
}
SCSS
$custom: #2a0e40;
$custom-light: #664f75;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0e40",
  "rgb": {
    "r": 42,
    "g": 14,
    "b": 64
  },
  "hsl": {
    "h": 273.6,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.23853,
    "c": 0.09143,
    "h": 306.3
  },
  "luminance": 0.01176
}

Semantic roles & 50–950 ramp

primary
#2A0E40
secondary
#507B2F
accent
#E7418A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A0E40

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

Preview Lab → · Contrast checker → · Palette generator →

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