#2A103E#2A103E

#2A103E is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.086 H 307.1°. Best body text is #FFFFFF at 16.91:1 contrast (WCAG AA passes).

Color values

HEX#2A103E
RGBrgb(42, 16, 62)
HSLhsl(274, 59%, 15%)
HSVhsv(274, 74%, 24%)
CMYKcmyk(32.3%, 74.2%, 0%, 75.7%)
CIE-LABlab(10.64, 23.45, -24.16)
CIE-LCHlch(10.64, 33.67, 314.15°)
OKLaboklab(23.98% 0.0516 -0.0684)
OKLCHoklch(23.98% 0.086 307.1)
XYZxyz(2.0095, 1.2106, 4.6843)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A103E #243E10
analogous
#13103E #2A103E #3E103B
triadic
#2A103E #3E2A10 #103E2A
tetradic
#2A103E #3E1310 #243E10 #103B3E
square
#2A103E #3E1310 #243E10 #103B3E
split-complementary
#2A103E #3B3E10 #103E13
monochromatic
#100618 #100618 #2A103E #4B1D6F #6C299F

Accessibility & contrast

On white

16.91
#2A103E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A103E
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A103E#FFFFFF#000000##FFFFFF
##2A103E1.0016.911.2416.91
#FFFFFF16.911.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3F
Deuteranopia (green-blind)
#071D3D
Tritanopia (blue-blind)
#271A25
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a103e;
/* rgb */ color: rgb(42, 16, 62);
/* oklch */ color: oklch(24.0% 0.086 307.1);
Tailwind
colors: {
  custom: {
    50: '#665073',
    500: '#2a103e',
    950: '#000000',
  },
}
SCSS
$custom: #2a103e;
$custom-light: #665073;
$custom-dark: #000000;
JSON
{
  "hex": "#2a103e",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 62
  },
  "hsl": {
    "h": 273.913,
    "s": 58.974,
    "l": 15.294
  },
  "oklch": {
    "l": 0.23982,
    "c": 0.08566,
    "h": 307.1
  },
  "luminance": 0.01211
}

Semantic roles & 50–950 ramp

primary
#2A103E
secondary
#507832
accent
#E2468A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A103E

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

Preview Lab → · Contrast checker → · Palette generator →

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