#2A034E#2A034E

#2A034E is a very dark, vivid violet. Relative luminance 0.011; OKLCH L 23.9% C 0.122 H 300.3°. Best body text is #FFFFFF at 17.19:1 contrast (WCAG AA passes).

Color values

HEX#2A034E
RGBrgb(42, 3, 78)
HSLhsl(271, 93%, 16%)
HSVhsv(271, 96%, 31%)
CMYKcmyk(46.2%, 96.2%, 0%, 69.4%)
CIE-LABlab(9.86, 34.47, -36.65)
CIE-LCHlch(9.86, 50.31, 313.24°)
OKLaboklab(23.91% 0.0613 -0.1049)
OKLCHoklch(23.91% 0.122 300.3)
XYZxyz(2.3622, 1.1074, 7.2955)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A034E #274E03
analogous
#04034E #2A034E #4E034C
triadic
#2A034E #4E2A03 #034E2A
tetradic
#2A034E #4E0403 #274E03 #034C4E
square
#2A034E #4E0403 #274E03 #034C4E
split-complementary
#2A034E #4C4E03 #034E04
monochromatic
#10011D #10011D #2A034E #4A0589 #6908C4

Accessibility & contrast

On white

17.19
#2A034E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2A034E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A034E
17.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A034E#FFFFFF#000000##FFFFFF
##2A034E1.0017.191.2217.19
#FFFFFF17.191.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B50
Deuteranopia (green-blind)
#001B4D
Tritanopia (blue-blind)
#211A2B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a034e;
/* rgb */ color: rgb(42, 3, 78);
/* oklch */ color: oklch(23.9% 0.122 300.3);
Tailwind
colors: {
  custom: {
    50: '#694a80',
    500: '#2a034e',
    950: '#000000',
  },
}
SCSS
$custom: #2a034e;
$custom-light: #694a80;
$custom-dark: #000000;
JSON
{
  "hex": "#2a034e",
  "rgb": {
    "r": 42,
    "g": 3,
    "b": 78
  },
  "hsl": {
    "h": 271.2,
    "s": 92.593,
    "l": 15.882
  },
  "oklch": {
    "l": 0.2391,
    "c": 0.12151,
    "h": 300.3
  },
  "luminance": 0.01107
}

Semantic roles & 50–950 ramp

primary
#2A034E
secondary
#548E1E
accent
#FF2990
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07010A
muted
#7A777C

Preview Lab

Preview with #2A034E

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

Preview Lab → · Contrast checker → · Palette generator →

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