#2A1F83#2A1F83

#2A1F83 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.158 H 278.3°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#2A1F83
RGBrgb(42, 31, 131)
HSLhsl(247, 62%, 32%)
HSVhsv(247, 76%, 51%)
CMYKcmyk(67.9%, 76.3%, 0%, 48.6%)
CIE-LABlab(20.48, 36.62, -54.06)
CIE-LCHlch(20.48, 65.30, 304.11°)
OKLaboklab(33.04% 0.0227 -0.1561)
OKLCHoklch(33.04% 0.158 278.3)
XYZxyz(5.5402, 3.1104, 21.7767)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1F83 #78831F
analogous
#1F4683 #2A1F83 #5C1F83
triadic
#2A1F83 #832A1F #1F832A
tetradic
#2A1F83 #831F46 #78831F #1F835C
square
#2A1F83 #831F46 #78831F #1F835C
split-complementary
#2A1F83 #835C1F #46831F
monochromatic
#0A0820 #1A1352 #2A1F83 #3A2BB4 #5849D4

Accessibility & contrast

On white

12.95
#2A1F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1F83
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1F83#FFFFFF#000000##FFFFFF
##2A1F831.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1f83;
/* rgb */ color: rgb(42, 31, 131);
/* oklch */ color: oklch(33.0% 0.158 278.3);
Tailwind
colors: {
  custom: {
    50: '#715da8',
    500: '#2a1f83',
    950: '#000000',
  },
}
SCSS
$custom: #2a1f83;
$custom-light: #715da8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1f83",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 246.6,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33041,
    "c": 0.15777,
    "h": 278.3
  },
  "luminance": 0.03111
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1F83

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

Preview Lab → · Contrast checker → · Palette generator →

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