#2A123E#2A123E

#2A123E is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.3% C 0.082 H 306.3°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#2A123E
RGBrgb(42, 18, 62)
HSLhsl(273, 55%, 16%)
HSVhsv(273, 71%, 24%)
CMYKcmyk(32.3%, 71%, 0%, 75.7%)
CIE-LABlab(11.08, 22.23, -23.44)
CIE-LCHlch(11.08, 32.30, 313.48°)
OKLaboklab(24.31% 0.0487 -0.0663)
OKLCHoklch(24.31% 0.082 306.3)
XYZxyz(2.0405, 1.2727, 4.6946)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A123E #263E12
analogous
#14123E #2A123E #3E123C
triadic
#2A123E #3E2A12 #123E2A
tetradic
#2A123E #3E1412 #263E12 #123C3E
square
#2A123E #3E1412 #263E12 #123C3E
split-complementary
#2A123E #3C3E12 #123E14
monochromatic
#100718 #100718 #2A123E #4A206D #6A2E9D

Accessibility & contrast

On white

16.74
#2A123E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2A123E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A123E
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A123E#FFFFFF#000000##FFFFFF
##2A123E1.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D3F
Deuteranopia (green-blind)
#091E3D
Tritanopia (blue-blind)
#271B25
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a123e;
/* rgb */ color: rgb(42, 18, 62);
/* oklch */ color: oklch(24.3% 0.082 306.3);
Tailwind
colors: {
  custom: {
    50: '#655173',
    500: '#2a123e',
    950: '#000000',
  },
}
SCSS
$custom: #2a123e;
$custom-light: #655173;
$custom-dark: #000000;
JSON
{
  "hex": "#2a123e",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 62
  },
  "hsl": {
    "h": 272.727,
    "s": 55,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24306,
    "c": 0.08226,
    "h": 306.3
  },
  "luminance": 0.01273
}

Semantic roles & 50–950 ramp

primary
#2A123E
secondary
#537735
accent
#DE498D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A123E

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

Preview Lab → · Contrast checker → · Palette generator →

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