#2A1253#2A1253

#2A1253 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.110 H 294.4°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#2A1253
RGBrgb(42, 18, 83)
HSLhsl(262, 64%, 20%)
HSVhsv(262, 78%, 33%)
CMYKcmyk(49.4%, 78.3%, 0%, 67.5%)
CIE-LABlab(12.92, 28.52, -35.07)
CIE-LCHlch(12.92, 45.20, 309.12°)
OKLaboklab(26.2% 0.0455 -0.1004)
OKLCHoklch(26.2% 0.11 294.4)
XYZxyz(2.7321, 1.5493, 8.3370)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1253 #3B5312
analogous
#121B53 #2A1253 #4B1253
triadic
#2A1253 #532A12 #12532A
tetradic
#2A1253 #53121B #3B5312 #12534B
square
#2A1253 #53121B #3B5312 #12534B
split-complementary
#2A1253 #534B12 #1B5312
monochromatic
#0D0519 #110721 #2A1253 #431D85 #5D28B8

Accessibility & contrast

On white

16.03
#2A1253 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2A1253 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1253
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1253#FFFFFF#000000##FFFFFF
##2A12531.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002255
Deuteranopia (green-blind)
#002052
Tritanopia (blue-blind)
#1E2331
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a1253;
/* rgb */ color: rgb(42, 18, 83);
/* oklch */ color: oklch(26.2% 0.110 294.4);
Tailwind
colors: {
  custom: {
    50: '#685284',
    500: '#2a1253',
    950: '#000000',
  },
}
SCSS
$custom: #2a1253;
$custom-light: #685284;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1253",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 83
  },
  "hsl": {
    "h": 262.154,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26197,
    "c": 0.11026,
    "h": 294.4
  },
  "luminance": 0.01549
}

Semantic roles & 50–950 ramp

primary
#2A1253
secondary
#6C8C35
accent
#E740AA
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #2A1253

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

Preview Lab → · Contrast checker → · Palette generator →

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