#2A1263#2A1263

#2A1263 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.131 H 288.2°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#2A1263
RGBrgb(42, 18, 99)
HSLhsl(258, 69%, 23%)
HSVhsv(258, 82%, 39%)
CMYKcmyk(57.6%, 81.8%, 0%, 61.2%)
CIE-LABlab(14.54, 33.46, -43.16)
CIE-LCHlch(14.54, 54.61, 307.78°)
OKLaboklab(27.84% 0.0409 -0.1242)
OKLCHoklch(27.84% 0.131 288.2)
XYZxyz(3.4226, 1.8255, 11.9740)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1263 #4B6312
analogous
#122263 #2A1263 #521263
triadic
#2A1263 #632A12 #12632A
tetradic
#2A1263 #631222 #4B6312 #126352
square
#2A1263 #631222 #4B6312 #126352
split-complementary
#2A1263 #635212 #226312
monochromatic
#0B051A #14092F #2A1263 #401B97 #5625CB

Accessibility & contrast

On white

15.38
#2A1263 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1263
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1263#FFFFFF#000000##FFFFFF
##2A12631.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002665
Deuteranopia (green-blind)
#002362
Tritanopia (blue-blind)
#13293A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a1263;
/* rgb */ color: rgb(42, 18, 99);
/* oklch */ color: oklch(27.8% 0.131 288.2);
Tailwind
colors: {
  custom: {
    50: '#6b5390',
    500: '#2a1263',
    950: '#000000',
  },
}
SCSS
$custom: #2a1263;
$custom-light: #6b5390;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1263",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 99
  },
  "hsl": {
    "h": 257.778,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27838,
    "c": 0.13073,
    "h": 288.2
  },
  "luminance": 0.01826
}

Semantic roles & 50–950 ramp

primary
#2A1263
secondary
#7D9B36
accent
#EC3CB8
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020D
muted
#7A787D

Preview Lab

Preview with #2A1263

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

Preview Lab → · Contrast checker → · Palette generator →

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