#2A1F86#2A1F86

#2A1F86 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.162 H 277.8°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#2A1F86
RGBrgb(42, 31, 134)
HSLhsl(246, 62%, 32%)
HSVhsv(246, 77%, 53%)
CMYKcmyk(68.7%, 76.9%, 0%, 47.5%)
CIE-LABlab(20.80, 37.62, -55.42)
CIE-LCHlch(20.80, 66.98, 304.17°)
OKLaboklab(33.36% 0.022 -0.1601)
OKLCHoklch(33.36% 0.162 277.8)
XYZxyz(5.7465, 3.1930, 22.8631)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1F86 #7B861F
analogous
#1F4786 #2A1F86 #5E1F86
triadic
#2A1F86 #862A1F #1F862A
tetradic
#2A1F86 #861F47 #7B861F #1F865E
square
#2A1F86 #861F47 #7B861F #1F865E
split-complementary
#2A1F86 #865E1F #47861F
monochromatic
#0B0823 #1A1454 #2A1F86 #3A2AB8 #594AD5

Accessibility & contrast

On white

12.82
#2A1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2A1F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1F86
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1F86#FFFFFF#000000##FFFFFF
##2A1F861.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a1f86;
/* rgb */ color: rgb(42, 31, 134);
/* oklch */ color: oklch(33.4% 0.162 277.8);
Tailwind
colors: {
  custom: {
    50: '#725daa',
    500: '#2a1f86',
    950: '#000000',
  },
}
SCSS
$custom: #2a1f86;
$custom-light: #725daa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1f86",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 246.408,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33363,
    "c": 0.1616,
    "h": 277.8
  },
  "luminance": 0.03193
}

Semantic roles & 50–950 ramp

primary
#2A1F86
secondary
#ACB849
accent
#E542D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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