#2A1F80#2A1F80

#2A1F80 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.154 H 278.7°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#2A1F80
RGBrgb(42, 31, 128)
HSLhsl(247, 61%, 31%)
HSVhsv(247, 76%, 50%)
CMYKcmyk(67.2%, 75.8%, 0%, 49.8%)
CIE-LABlab(20.16, 35.62, -52.69)
CIE-LCHlch(20.16, 63.60, 304.06°)
OKLaboklab(32.72% 0.0234 -0.1521)
OKLCHoklch(32.72% 0.154 278.7)
XYZxyz(5.3399, 3.0303, 20.7214)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1F80 #75801F
analogous
#1F4480 #2A1F80 #5A1F80
triadic
#2A1F80 #802A1F #1F802A
tetradic
#2A1F80 #801F44 #75801F #1F805A
square
#2A1F80 #801F44 #75801F #1F805A
split-complementary
#2A1F80 #805A1F #44801F
monochromatic
#0A071D #1A134F #2A1F80 #3A2BB1 #5747D2

Accessibility & contrast

On white

13.07
#2A1F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2A1F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1F80
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1F80#FFFFFF#000000##FFFFFF
##2A1F801.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a1f80;
/* rgb */ color: rgb(42, 31, 128);
/* oklch */ color: oklch(32.7% 0.154 278.7);
Tailwind
colors: {
  custom: {
    50: '#705ca6',
    500: '#2a1f80',
    950: '#000000',
  },
}
SCSS
$custom: #2a1f80;
$custom-light: #705ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1f80",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 246.804,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32722,
    "c": 0.15389,
    "h": 278.7
  },
  "luminance": 0.03031
}

Semantic roles & 50–950 ramp

primary
#2A1F80
secondary
#A7B348
accent
#E444D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1F80

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

Preview Lab → · Contrast checker → · Palette generator →

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