#2A1C7B#2A1C7B

#2A1C7B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.151 H 280.2°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#2A1C7B
RGBrgb(42, 28, 123)
HSLhsl(249, 63%, 30%)
HSVhsv(249, 77%, 48%)
CMYKcmyk(65.9%, 77.2%, 0%, 51.8%)
CIE-LABlab(19.02, 35.68, -51.39)
CIE-LCHlch(19.02, 62.56, 304.77°)
OKLaboklab(31.76% 0.0266 -0.1483)
OKLCHoklch(31.76% 0.151 280.2)
XYZxyz(4.9441, 2.7524, 19.0058)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C7B #6D7B1C
analogous
#1C3E7B #2A1C7B #5A1C7B
triadic
#2A1C7B #7B2A1C #1C7B2A
tetradic
#2A1C7B #7B1C3E #6D7B1C #1C7B5A
square
#2A1C7B #7B1C3E #6D7B1C #1C7B5A
split-complementary
#2A1C7B #7B5A1C #3E7B1C
monochromatic
#090619 #191149 #2A1C7B #3B27AD #543ED3

Accessibility & contrast

On white

13.54
#2A1C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2A1C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1C7B
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C7B#FFFFFF#000000##FFFFFF
##2A1C7B1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a1c7b;
/* rgb */ color: rgb(42, 28, 123);
/* oklch */ color: oklch(31.8% 0.151 280.2);
Tailwind
colors: {
  custom: {
    50: '#6f5aa2',
    500: '#2a1c7b',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c7b;
$custom-light: #6f5aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c7b",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 248.842,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31756,
    "c": 0.15067,
    "h": 280.2
  },
  "luminance": 0.02753
}

Semantic roles & 50–950 ramp

primary
#2A1C7B
secondary
#9FAF44
accent
#E642CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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