#2A1F79#2A1F79

#2A1F79 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.145 H 279.9°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#2A1F79
RGBrgb(42, 31, 121)
HSLhsl(247, 59%, 30%)
HSVhsv(247, 74%, 47%)
CMYKcmyk(65.3%, 74.4%, 0%, 52.5%)
CIE-LABlab(19.44, 33.26, -49.42)
CIE-LCHlch(19.44, 59.57, 303.94°)
OKLaboklab(31.99% 0.0249 -0.1426)
OKLCHoklch(31.99% 0.145 279.9)
XYZxyz(4.8949, 2.8523, 18.3781)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1F79 #6E791F
analogous
#1F4179 #2A1F79 #571F79
triadic
#2A1F79 #792A1F #1F792A
tetradic
#2A1F79 #791F41 #6E791F #1F7957
square
#2A1F79 #791F41 #6E791F #1F7957
split-complementary
#2A1F79 #79571F #41791F
monochromatic
#080618 #191348 #2A1F79 #3B2BAA #5443CF

Accessibility & contrast

On white

13.37
#2A1F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2A1F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1F79
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1F79#FFFFFF#000000##FFFFFF
##2A1F791.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002C77
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1f79;
/* rgb */ color: rgb(42, 31, 121);
/* oklch */ color: oklch(32.0% 0.145 279.9);
Tailwind
colors: {
  custom: {
    50: '#6f5ca1',
    500: '#2a1f79',
    950: '#000000',
  },
}
SCSS
$custom: #2a1f79;
$custom-light: #6f5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1f79",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 247.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3199,
    "c": 0.14472,
    "h": 279.9
  },
  "luminance": 0.02853
}

Semantic roles & 50–950 ramp

primary
#2A1F79
secondary
#A0AC47
accent
#E245CF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1F79

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

Preview Lab → · Contrast checker → · Palette generator →

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