#2A1F77#2A1F77

#2A1F77 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.142 H 280.3°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#2A1F77
RGBrgb(42, 31, 119)
HSLhsl(248, 59%, 29%)
HSVhsv(248, 74%, 47%)
CMYKcmyk(64.7%, 73.9%, 0%, 53.3%)
CIE-LABlab(19.24, 32.58, -48.47)
CIE-LCHlch(19.24, 58.40, 303.90°)
OKLaboklab(31.79% 0.0253 -0.1398)
OKLCHoklch(31.79% 0.142 280.3)
XYZxyz(4.7735, 2.8038, 17.7388)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1F77 #6C771F
analogous
#1F4077 #2A1F77 #561F77
triadic
#2A1F77 #772A1F #1F772A
tetradic
#2A1F77 #771F40 #6C771F #1F7756
square
#2A1F77 #771F40 #6C771F #1F7756
split-complementary
#2A1F77 #77561F #40771F
monochromatic
#090618 #191246 #2A1F77 #3B2CA8 #5443CE

Accessibility & contrast

On white

13.45
#2A1F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2A1F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1F77
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1F77#FFFFFF#000000##FFFFFF
##2A1F771.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1f77;
/* rgb */ color: rgb(42, 31, 119);
/* oklch */ color: oklch(31.8% 0.142 280.3);
Tailwind
colors: {
  custom: {
    50: '#6e5c9f',
    500: '#2a1f77',
    950: '#000000',
  },
}
SCSS
$custom: #2a1f77;
$custom-light: #6e5c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1f77",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 247.5,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31785,
    "c": 0.14207,
    "h": 280.3
  },
  "luminance": 0.02804
}

Semantic roles & 50–950 ramp

primary
#2A1F77
secondary
#9EAB47
accent
#E246CE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2A1F77

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

Preview Lab → · Contrast checker → · Palette generator →

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