#2A0B3E#2A0B3E

#2A0B3E is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.093 H 308.5°. Best body text is #FFFFFF at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#2A0B3E
RGBrgb(42, 11, 62)
HSLhsl(276, 70%, 14%)
HSVhsv(276, 82%, 24%)
CMYKcmyk(32.3%, 82.3%, 0%, 75.7%)
CIE-LABlab(9.64, 26.23, -25.77)
CIE-LCHlch(9.64, 36.77, 315.51°)
OKLaboklab(23.27% 0.0582 -0.0731)
OKLCHoklch(23.27% 0.093 308.5)
XYZxyz(1.9438, 1.0794, 4.6624)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0B3E #1F3E0B
analogous
#110B3E #2A0B3E #3E0B39
triadic
#2A0B3E #3E2A0B #0B3E2A
tetradic
#2A0B3E #3E110B #1F3E0B #0B393E
square
#2A0B3E #3E110B #1F3E0B #0B393E
split-complementary
#2A0B3E #393E0B #0B3E11
monochromatic
#12051A #12051A #2A0B3E #4D1472 #701DA6

Accessibility & contrast

On white

17.27
#2A0B3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2A0B3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0B3E
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0B3E#FFFFFF#000000##FFFFFF
##2A0B3E1.0017.271.2217.27
#FFFFFF17.271.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3F
Deuteranopia (green-blind)
#011B3D
Tritanopia (blue-blind)
#271723
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a0b3e;
/* rgb */ color: rgb(42, 11, 62);
/* oklch */ color: oklch(23.3% 0.093 308.5);
Tailwind
colors: {
  custom: {
    50: '#664d74',
    500: '#2a0b3e',
    950: '#000000',
  },
}
SCSS
$custom: #2a0b3e;
$custom-light: #664d74;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0b3e",
  "rgb": {
    "r": 42,
    "g": 11,
    "b": 62
  },
  "hsl": {
    "h": 276.471,
    "s": 69.863,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23267,
    "c": 0.0934,
    "h": 308.5
  },
  "luminance": 0.01079
}

Semantic roles & 50–950 ramp

primary
#2A0B3E
secondary
#4A7B2A
accent
#ED3B81
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A0B3E

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

Preview Lab → · Contrast checker → · Palette generator →

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