#2A1F84#2A1F84

#2A1F84 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.159 H 278.1°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#2A1F84
RGBrgb(42, 31, 132)
HSLhsl(247, 62%, 32%)
HSVhsv(247, 77%, 52%)
CMYKcmyk(68.2%, 76.5%, 0%, 48.2%)
CIE-LABlab(20.59, 36.95, -54.52)
CIE-LCHlch(20.59, 65.86, 304.13°)
OKLaboklab(33.15% 0.0225 -0.1575)
OKLCHoklch(33.15% 0.159 278.1)
XYZxyz(5.6083, 3.1377, 22.1354)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1F84 #79841F
analogous
#1F4684 #2A1F84 #5D1F84
triadic
#2A1F84 #842A1F #1F842A
tetradic
#2A1F84 #841F46 #79841F #1F845D
square
#2A1F84 #841F46 #79841F #1F845D
split-complementary
#2A1F84 #845D1F #46841F
monochromatic
#0A0821 #1A1352 #2A1F84 #3A2BB6 #5849D4

Accessibility & contrast

On white

12.90
#2A1F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2A1F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1F84
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1F84#FFFFFF#000000##FFFFFF
##2A1F841.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a1f84;
/* rgb */ color: rgb(42, 31, 132);
/* oklch */ color: oklch(33.1% 0.159 278.1);
Tailwind
colors: {
  custom: {
    50: '#715da9',
    500: '#2a1f84',
    950: '#000000',
  },
}
SCSS
$custom: #2a1f84;
$custom-light: #715da9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1f84",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 246.535,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33148,
    "c": 0.15905,
    "h": 278.1
  },
  "luminance": 0.03138
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1F84

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

Preview Lab → · Contrast checker → · Palette generator →

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