#2A1D92#2A1D92

#2A1D92 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.4% C 0.178 H 276.4°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#2A1D92
RGBrgb(42, 29, 146)
HSLhsl(247, 67%, 34%)
HSVhsv(247, 80%, 57%)
CMYKcmyk(71.2%, 80.1%, 0%, 42.7%)
CIE-LABlab(21.75, 42.61, -61.35)
CIE-LCHlch(21.75, 74.70, 304.78°)
OKLaboklab(34.42% 0.02 -0.1773)
OKLCHoklch(34.42% 0.178 276.4)
XYZxyz(6.5808, 3.4457, 27.5068)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D92 #85921D
analogous
#1D4A92 #2A1D92 #651D92
triadic
#2A1D92 #922A1D #1D922A
tetradic
#2A1D92 #921D4A #85921D #1D9265
square
#2A1D92 #921D4A #85921D #1D9265
split-complementary
#2A1D92 #92651D #4A921D
monochromatic
#0D092C #1B135F #2A1D92 #3927C5 #5D4EDC

Accessibility & contrast

On white

12.43
#2A1D92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2A1D92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1D92
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D92#FFFFFF#000000##FFFFFF
##2A1D921.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003995
Deuteranopia (green-blind)
#002F90
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a1d92;
/* rgb */ color: rgb(42, 29, 146);
/* oklch */ color: oklch(34.4% 0.178 276.4);
Tailwind
colors: {
  custom: {
    50: '#745cb3',
    500: '#2a1d92',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d92;
$custom-light: #745cb3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d92",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 146
  },
  "hsl": {
    "h": 246.667,
    "s": 66.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3442,
    "c": 0.17846,
    "h": 276.4
  },
  "luminance": 0.03446
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1D92

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

Preview Lab → · Contrast checker → · Palette generator →

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