#2A1D93#2A1D93

#2A1D93 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.180 H 276.3°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#2A1D93
RGBrgb(42, 29, 147)
HSLhsl(247, 67%, 35%)
HSVhsv(247, 80%, 58%)
CMYKcmyk(71.4%, 80.3%, 0%, 42.4%)
CIE-LABlab(21.86, 42.93, -61.78)
CIE-LCHlch(21.86, 75.23, 304.79°)
OKLaboklab(34.53% 0.0198 -0.1786)
OKLCHoklch(34.53% 0.18 276.3)
XYZxyz(6.6589, 3.4769, 27.9183)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D93 #86931D
analogous
#1D4B93 #2A1D93 #651D93
triadic
#2A1D93 #932A1D #1D932A
tetradic
#2A1D93 #931D4B #86931D #1D9365
square
#2A1D93 #931D4B #86931D #1D9365
split-complementary
#2A1D93 #93651D #4B931D
monochromatic
#0D092D #1B1360 #2A1D93 #3927C6 #5E4EDC

Accessibility & contrast

On white

12.38
#2A1D93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2A1D93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1D93
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D93#FFFFFF#000000##FFFFFF
##2A1D931.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003996
Deuteranopia (green-blind)
#002F91
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a1d93;
/* rgb */ color: rgb(42, 29, 147);
/* oklch */ color: oklch(34.5% 0.180 276.3);
Tailwind
colors: {
  custom: {
    50: '#755cb4',
    500: '#2a1d93',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d93;
$custom-light: #755cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d93",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 147
  },
  "hsl": {
    "h": 246.61,
    "s": 67.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34533,
    "c": 0.17967,
    "h": 276.3
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

primary
#2A1D93
secondary
#B2BF4D
accent
#EA3ED7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1D93

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

Preview Lab → · Contrast checker → · Palette generator →

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