#2A1F76#2A1F76

#2A1F76 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.141 H 280.4°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#2A1F76
RGBrgb(42, 31, 118)
HSLhsl(248, 58%, 29%)
HSVhsv(248, 74%, 46%)
CMYKcmyk(64.4%, 73.7%, 0%, 53.7%)
CIE-LABlab(19.14, 32.24, -48.00)
CIE-LCHlch(19.14, 57.82, 303.89°)
OKLaboklab(31.68% 0.0255 -0.1384)
OKLCHoklch(31.68% 0.141 280.4)
XYZxyz(4.7138, 2.7799, 17.4242)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1F76 #6B761F
analogous
#1F4076 #2A1F76 #561F76
triadic
#2A1F76 #762A1F #1F762A
tetradic
#2A1F76 #761F40 #6B761F #1F7656
square
#2A1F76 #761F40 #6B761F #1F7656
split-complementary
#2A1F76 #76561F #40761F
monochromatic
#090618 #191246 #2A1F76 #3B2CA6 #5442CD

Accessibility & contrast

On white

13.50
#2A1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2A1F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1F76
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1F76#FFFFFF#000000##FFFFFF
##2A1F761.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#002B74
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a1f76;
/* rgb */ color: rgb(42, 31, 118);
/* oklch */ color: oklch(31.7% 0.141 280.4);
Tailwind
colors: {
  custom: {
    50: '#6e5c9e',
    500: '#2a1f76',
    950: '#000000',
  },
}
SCSS
$custom: #2a1f76;
$custom-light: #6e5c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1f76",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 247.586,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31683,
    "c": 0.14073,
    "h": 280.4
  },
  "luminance": 0.0278
}

Semantic roles & 50–950 ramp

primary
#2A1F76
secondary
#9DAA47
accent
#E246CE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2A1F76

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

Preview Lab → · Contrast checker → · Palette generator →

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