#2A134F#2A134F

#2A134F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.104 H 295.9°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#2A134F
RGBrgb(42, 19, 79)
HSLhsl(263, 61%, 19%)
HSVhsv(263, 76%, 31%)
CMYKcmyk(46.8%, 75.9%, 0%, 69%)
CIE-LABlab(12.75, 26.71, -32.61)
CIE-LCHlch(12.75, 42.15, 309.32°)
OKLaboklab(25.96% 0.0452 -0.0932)
OKLCHoklch(25.96% 0.104 295.9)
XYZxyz(2.5986, 1.5224, 7.5526)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A134F #384F13
analogous
#131A4F #2A134F #48134F
triadic
#2A134F #4F2A13 #134F2A
tetradic
#2A134F #4F131A #384F13 #134F48
square
#2A134F #4F131A #384F13 #134F48
split-complementary
#2A134F #4F4813 #1A4F13
monochromatic
#0D0619 #10071E #2A134F #441F80 #5E2BB2

Accessibility & contrast

On white

16.10
#2A134F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A134F
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A134F#FFFFFF#000000##FFFFFF
##2A134F1.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a134f;
/* rgb */ color: rgb(42, 19, 79);
/* oklch */ color: oklch(26.0% 0.104 295.9);
Tailwind
colors: {
  custom: {
    50: '#685381',
    500: '#2a134f',
    950: '#000000',
  },
}
SCSS
$custom: #2a134f;
$custom-light: #685381;
$custom-dark: #000000;
JSON
{
  "hex": "#2a134f",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 79
  },
  "hsl": {
    "h": 263,
    "s": 61.224,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25961,
    "c": 0.10362,
    "h": 295.9
  },
  "luminance": 0.01522
}

Semantic roles & 50–950 ramp

primary
#2A134F
secondary
#688836
accent
#E443A7
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A134F

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

Preview Lab → · Contrast checker → · Palette generator →

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