#2A144C#2A144C

#2A144C is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.098 H 297.0°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#2A144C
RGBrgb(42, 20, 76)
HSLhsl(264, 58%, 19%)
HSVhsv(264, 74%, 30%)
CMYKcmyk(44.7%, 73.7%, 0%, 70.2%)
CIE-LABlab(12.70, 25.18, -30.63)
CIE-LCHlch(12.70, 39.65, 309.43°)
OKLaboklab(25.84% 0.0446 -0.0874)
OKLCHoklch(25.84% 0.098 297)
XYZxyz(2.5092, 1.5143, 6.9962)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A144C #364C14
analogous
#141A4C #2A144C #46144C
triadic
#2A144C #4C2A14 #144C2A
tetradic
#2A144C #4C141A #364C14 #144C46
square
#2A144C #4C141A #364C14 #144C46
split-complementary
#2A144C #4C4614 #1A4C14
monochromatic
#0D0618 #0F071C #2A144C #45217C #602EAD

Accessibility & contrast

On white

16.12
#2A144C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2A144C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A144C
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A144C#FFFFFF#000000##FFFFFF
##2A144C1.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#22212E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a144c;
/* rgb */ color: rgb(42, 20, 76);
/* oklch */ color: oklch(25.8% 0.098 297.0);
Tailwind
colors: {
  custom: {
    50: '#67537e',
    500: '#2a144c',
    950: '#000000',
  },
}
SCSS
$custom: #2a144c;
$custom-light: #67537e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a144c",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 76
  },
  "hsl": {
    "h": 263.571,
    "s": 58.333,
    "l": 18.824
  },
  "oklch": {
    "l": 0.2584,
    "c": 0.09809,
    "h": 297
  },
  "luminance": 0.01514
}

Semantic roles & 50–950 ramp

primary
#2A144C
secondary
#668438
accent
#E246A5
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A144C

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

Preview Lab → · Contrast checker → · Palette generator →

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