#2A103F#2A103F

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

Color values

HEX#2A103F
RGBrgb(42, 16, 63)
HSLhsl(273, 59%, 15%)
HSVhsv(273, 75%, 25%)
CMYKcmyk(33.3%, 74.6%, 0%, 75.3%)
CIE-LABlab(10.72, 23.73, -24.74)
CIE-LCHlch(10.72, 34.28, 313.81°)
OKLaboklab(24.07% 0.0515 -0.0701)
OKLCHoklch(24.07% 0.087 306.3)
XYZxyz(2.0371, 1.2217, 4.8302)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A103F #253F10
analogous
#12103F #2A103F #3F103C
triadic
#2A103F #3F2A10 #103F2A
tetradic
#2A103F #3F1210 #253F10 #103C3F
square
#2A103F #3F1210 #253F10 #103C3F
split-complementary
#2A103F #3C3F10 #103F12
monochromatic
#100618 #100618 #2A103F #4B1C70 #6B29A1

Accessibility & contrast

On white

16.88
#2A103F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A103F
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A103F#FFFFFF#000000##FFFFFF
##2A103F1.0016.881.2416.88
#FFFFFF16.881.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C40
Deuteranopia (green-blind)
#051D3E
Tritanopia (blue-blind)
#261A25
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a103f;
/* rgb */ color: rgb(42, 16, 63);
/* oklch */ color: oklch(24.1% 0.087 306.3);
Tailwind
colors: {
  custom: {
    50: '#665074',
    500: '#2a103f',
    950: '#000000',
  },
}
SCSS
$custom: #2a103f;
$custom-light: #665074;
$custom-dark: #000000;
JSON
{
  "hex": "#2a103f",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 63
  },
  "hsl": {
    "h": 273.191,
    "s": 59.494,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24066,
    "c": 0.08698,
    "h": 306.3
  },
  "luminance": 0.01222
}

Semantic roles & 50–950 ramp

primary
#2A103F
secondary
#527932
accent
#E3458C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A103F

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

Preview Lab → · Contrast checker → · Palette generator →

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