#2A144F#2A144F

#2A144F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.102 H 295.5°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#2A144F
RGBrgb(42, 20, 79)
HSLhsl(262, 60%, 19%)
HSVhsv(262, 75%, 31%)
CMYKcmyk(46.8%, 74.7%, 0%, 69%)
CIE-LABlab(12.97, 26.11, -32.25)
CIE-LCHlch(12.97, 41.50, 308.99°)
OKLaboklab(26.12% 0.0441 -0.0922)
OKLCHoklch(26.12% 0.102 295.5)
XYZxyz(2.6159, 1.5570, 7.5583)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A144F #394F14
analogous
#141C4F #2A144F #48144F
triadic
#2A144F #4F2A14 #144F2A
tetradic
#2A144F #4F141C #394F14 #144F48
square
#2A144F #4F141C #394F14 #144F48
split-complementary
#2A144F #4F4814 #1C4F14
monochromatic
#0D0618 #10081E #2A144F #442080 #5E2DB1

Accessibility & contrast

On white

16.01
#2A144F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A144F
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A144F#FFFFFF#000000##FFFFFF
##2A144F1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002251
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#20222F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a144f;
/* rgb */ color: rgb(42, 20, 79);
/* oklch */ color: oklch(26.1% 0.102 295.5);
Tailwind
colors: {
  custom: {
    50: '#685381',
    500: '#2a144f',
    950: '#000000',
  },
}
SCSS
$custom: #2a144f;
$custom-light: #685381;
$custom-dark: #000000;
JSON
{
  "hex": "#2a144f",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 79
  },
  "hsl": {
    "h": 262.373,
    "s": 59.596,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26115,
    "c": 0.10218,
    "h": 295.5
  },
  "luminance": 0.01557
}

Semantic roles & 50–950 ramp

primary
#2A144F
secondary
#6A8738
accent
#E345A8
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A144F

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

Preview Lab → · Contrast checker → · Palette generator →

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