#2A114F#2A114F

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

Color values

HEX#2A114F
RGBrgb(42, 17, 79)
HSLhsl(264, 65%, 19%)
HSVhsv(264, 78%, 31%)
CMYKcmyk(46.8%, 78.5%, 0%, 69%)
CIE-LABlab(12.34, 27.86, -33.28)
CIE-LCHlch(12.34, 43.40, 309.93°)
OKLaboklab(25.67% 0.0475 -0.0952)
OKLCHoklch(25.67% 0.106 296.5)
XYZxyz(2.5662, 1.4576, 7.5418)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A114F #364F11
analogous
#11174F #2A114F #49114F
triadic
#2A114F #4F2A11 #114F2A
tetradic
#2A114F #4F1117 #364F11 #114F49
square
#2A114F #4F1117 #364F11 #114F49
split-complementary
#2A114F #4F4911 #174F11
monochromatic
#0D0519 #0F061D #2A114F #451C81 #6027B4

Accessibility & contrast

On white

16.26
#2A114F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A114F
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A114F#FFFFFF#000000##FFFFFF
##2A114F1.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#20212E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a114f;
/* rgb */ color: rgb(42, 17, 79);
/* oklch */ color: oklch(25.7% 0.106 296.5);
Tailwind
colors: {
  custom: {
    50: '#685181',
    500: '#2a114f',
    950: '#000000',
  },
}
SCSS
$custom: #2a114f;
$custom-light: #685181;
$custom-dark: #000000;
JSON
{
  "hex": "#2a114f",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 79
  },
  "hsl": {
    "h": 264.194,
    "s": 64.583,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25666,
    "c": 0.10639,
    "h": 296.5
  },
  "luminance": 0.01458
}

Semantic roles & 50–950 ramp

primary
#2A114F
secondary
#668833
accent
#E840A4
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A114F

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

Preview Lab → · Contrast checker → · Palette generator →

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