#2A2771#2A2771

#2A2771 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.124 H 278.8°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#2A2771
RGBrgb(42, 39, 113)
HSLhsl(242, 49%, 30%)
HSVhsv(242, 65%, 44%)
CMYKcmyk(62.8%, 65.5%, 0%, 55.7%)
CIE-LABlab(20.58, 25.34, -42.43)
CIE-LCHlch(20.58, 49.42, 300.85°)
OKLaboklab(32.58% 0.019 -0.1221)
OKLCHoklch(32.58% 0.124 278.8)
XYZxyz(4.6600, 3.1352, 15.9792)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2771 #6E7127
analogous
#274971 #2A2771 #4F2771
triadic
#2A2771 #712A27 #27712A
tetradic
#2A2771 #712749 #6E7127 #27714F
square
#2A2771 #712749 #6E7127 #27714F
split-complementary
#2A2771 #714F27 #497127
monochromatic
#080817 #191744 #2A2771 #3B379E #5450C3

Accessibility & contrast

On white

12.91
#2A2771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2771
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2771#FFFFFF#000000##FFFFFF
##2A27711.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#003948
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a2771;
/* rgb */ color: rgb(42, 39, 113);
/* oklch */ color: oklch(32.6% 0.124 278.8);
Tailwind
colors: {
  custom: {
    50: '#6c619a',
    500: '#2a2771',
    950: '#000000',
  },
}
SCSS
$custom: #2a2771;
$custom-light: #6c619a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2771",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 242.432,
    "s": 48.684,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32578,
    "c": 0.12354,
    "h": 278.8
  },
  "luminance": 0.03136
}

Semantic roles & 50–950 ramp

primary
#2A2771
secondary
#A0A350
accent
#D850D3
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2A2771

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

Preview Lab → · Contrast checker → · Palette generator →

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