#2A1F82#2A1F82

#2A1F82 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.156 H 278.4°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#2A1F82
RGBrgb(42, 31, 130)
HSLhsl(247, 61%, 32%)
HSVhsv(247, 76%, 51%)
CMYKcmyk(67.7%, 76.2%, 0%, 49%)
CIE-LABlab(20.38, 36.29, -53.61)
CIE-LCHlch(20.38, 64.73, 304.09°)
OKLaboklab(32.93% 0.0229 -0.1548)
OKLCHoklch(32.93% 0.156 278.4)
XYZxyz(5.4728, 3.0835, 21.4215)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1F82 #77821F
analogous
#1F4682 #2A1F82 #5C1F82
triadic
#2A1F82 #822A1F #1F822A
tetradic
#2A1F82 #821F46 #77821F #1F825C
square
#2A1F82 #821F46 #77821F #1F825C
split-complementary
#2A1F82 #825C1F #46821F
monochromatic
#0A071F #1A1351 #2A1F82 #3A2BB3 #5848D3

Accessibility & contrast

On white

12.99
#2A1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2A1F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1F82
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1F82#FFFFFF#000000##FFFFFF
##2A1F821.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a1f82;
/* rgb */ color: rgb(42, 31, 130);
/* oklch */ color: oklch(32.9% 0.156 278.4);
Tailwind
colors: {
  custom: {
    50: '#715ca7',
    500: '#2a1f82',
    950: '#000000',
  },
}
SCSS
$custom: #2a1f82;
$custom-light: #715ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1f82",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 246.667,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32934,
    "c": 0.15648,
    "h": 278.4
  },
  "luminance": 0.03084
}

Semantic roles & 50–950 ramp

primary
#2A1F82
secondary
#A9B548
accent
#E543D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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