#2A1B6E#2A1B6E

#2A1B6E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.135 H 283.1°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#2A1B6E
RGBrgb(42, 27, 110)
HSLhsl(251, 61%, 27%)
HSVhsv(251, 75%, 43%)
CMYKcmyk(61.8%, 75.5%, 0%, 56.9%)
CIE-LABlab(17.47, 31.95, -45.58)
CIE-LCHlch(17.47, 55.66, 305.04°)
OKLaboklab(30.25% 0.0305 -0.1313)
OKLCHoklch(30.25% 0.135 283.1)
XYZxyz(4.1604, 2.4016, 14.9932)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B6E #5F6E1B
analogous
#1B366E #2A1B6E #541B6E
triadic
#2A1B6E #6E2A1B #1B6E2A
tetradic
#2A1B6E #6E1B36 #5F6E1B #1B6E54
square
#2A1B6E #6E1B36 #5F6E1B #1B6E54
split-complementary
#2A1B6E #6E541B #366E1B
monochromatic
#090619 #170F3D #2A1B6E #3D279F #5136CE

Accessibility & contrast

On white

14.19
#2A1B6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2A1B6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B6E
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B6E#FFFFFF#000000##FFFFFF
##2A1B6E1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00286C
Tritanopia (blue-blind)
#013242
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a1b6e;
/* rgb */ color: rgb(42, 27, 110);
/* oklch */ color: oklch(30.2% 0.135 283.1);
Tailwind
colors: {
  custom: {
    50: '#6d5998',
    500: '#2a1b6e',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b6e;
$custom-light: #6d5998;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b6e",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 110
  },
  "hsl": {
    "h": 250.843,
    "s": 60.584,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30246,
    "c": 0.13479,
    "h": 283.1
  },
  "luminance": 0.02402
}

Semantic roles & 50–950 ramp

primary
#2A1B6E
secondary
#91A342
accent
#E444C7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2A1B6E

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

Preview Lab → · Contrast checker → · Palette generator →

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