#2A114E#2A114E

#2A114E is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.105 H 297.0°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#2A114E
RGBrgb(42, 17, 78)
HSLhsl(265, 64%, 19%)
HSVhsv(265, 78%, 31%)
CMYKcmyk(46.2%, 78.2%, 0%, 69.4%)
CIE-LABlab(12.24, 27.56, -32.75)
CIE-LCHlch(12.24, 42.80, 310.08°)
OKLaboklab(25.57% 0.0478 -0.0936)
OKLCHoklch(25.57% 0.105 297)
XYZxyz(2.5301, 1.4431, 7.3515)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A114E #354E11
analogous
#11164E #2A114E #48114E
triadic
#2A114E #4E2A11 #114E2A
tetradic
#2A114E #4E1116 #354E11 #114E48
square
#2A114E #4E1116 #354E11 #114E48
split-complementary
#2A114E #4E4811 #164E11
monochromatic
#0E0519 #0F061C #2A114E #451C80 #6027B2

Accessibility & contrast

On white

16.30
#2A114E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2A114E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A114E
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A114E#FFFFFF#000000##FFFFFF
##2A114E1.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002050
Deuteranopia (green-blind)
#001F4D
Tritanopia (blue-blind)
#21202E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a114e;
/* rgb */ color: rgb(42, 17, 78);
/* oklch */ color: oklch(25.6% 0.105 297.0);
Tailwind
colors: {
  custom: {
    50: '#685180',
    500: '#2a114e',
    950: '#000000',
  },
}
SCSS
$custom: #2a114e;
$custom-light: #685180;
$custom-dark: #000000;
JSON
{
  "hex": "#2a114e",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 78
  },
  "hsl": {
    "h": 264.59,
    "s": 64.211,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25571,
    "c": 0.10509,
    "h": 297
  },
  "luminance": 0.01443
}

Semantic roles & 50–950 ramp

primary
#2A114E
secondary
#658733
accent
#E741A3
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A114E

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

Preview Lab → · Contrast checker → · Palette generator →

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