#2A134C#2A134C

#2A134C is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.100 H 297.4°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#2A134C
RGBrgb(42, 19, 76)
HSLhsl(264, 60%, 19%)
HSVhsv(264, 75%, 30%)
CMYKcmyk(44.7%, 75%, 0%, 70.2%)
CIE-LABlab(12.48, 25.79, -30.98)
CIE-LCHlch(12.48, 40.31, 309.77°)
OKLaboklab(25.68% 0.0458 -0.0884)
OKLCHoklch(25.68% 0.1 297.4)
XYZxyz(2.4919, 1.4797, 6.9904)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A134C #354C13
analogous
#13184C #2A134C #46134C
triadic
#2A134C #4C2A13 #134C2A
tetradic
#2A134C #4C1318 #354C13 #134C46
square
#2A134C #4C1318 #354C13 #134C46
split-complementary
#2A134C #4C4613 #184C13
monochromatic
#0E0618 #0F071B #2A134C #451F7D #602BAE

Accessibility & contrast

On white

16.20
#2A134C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A134C
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A134C#FFFFFF#000000##FFFFFF
##2A134C1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a134c;
/* rgb */ color: rgb(42, 19, 76);
/* oklch */ color: oklch(25.7% 0.100 297.4);
Tailwind
colors: {
  custom: {
    50: '#67527f',
    500: '#2a134c',
    950: '#000000',
  },
}
SCSS
$custom: #2a134c;
$custom-light: #67527f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a134c",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 76
  },
  "hsl": {
    "h": 264.211,
    "s": 60,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25682,
    "c": 0.0996,
    "h": 297.4
  },
  "luminance": 0.0148
}

Semantic roles & 50–950 ramp

primary
#2A134C
secondary
#658536
accent
#E345A3
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A134C

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

Preview Lab → · Contrast checker → · Palette generator →

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