#2A2971#2A2971

#2A2971 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.121 H 278.1°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#2A2971
RGBrgb(42, 41, 113)
HSLhsl(241, 47%, 30%)
HSVhsv(241, 64%, 44%)
CMYKcmyk(62.8%, 63.7%, 0%, 55.7%)
CIE-LABlab(21.09, 23.99, -41.59)
CIE-LCHlch(21.09, 48.01, 299.98°)
OKLaboklab(32.96% 0.017 -0.1196)
OKLCHoklch(32.96% 0.121 278.1)
XYZxyz(4.7275, 3.2700, 16.0016)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2971 #707129
analogous
#294C71 #2A2971 #4E2971
triadic
#2A2971 #712A29 #29712A
tetradic
#2A2971 #71294C #707129 #29714E
square
#2A2971 #71294C #707129 #29714E
split-complementary
#2A2971 #714E29 #4C7129
monochromatic
#090817 #191944 #2A2971 #3B399E #5554C1

Accessibility & contrast

On white

12.70
#2A2971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2A2971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2971
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2971#FFFFFF#000000##FFFFFF
##2A29711.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a2971;
/* rgb */ color: rgb(42, 41, 113);
/* oklch */ color: oklch(33.0% 0.121 278.1);
Tailwind
colors: {
  custom: {
    50: '#6c639a',
    500: '#2a2971',
    950: '#000000',
  },
}
SCSS
$custom: #2a2971;
$custom-light: #6c639a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2971",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 240.833,
    "s": 46.753,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32957,
    "c": 0.12078,
    "h": 278.1
  },
  "luminance": 0.0327
}

Semantic roles & 50–950 ramp

primary
#2A2971
secondary
#A2A353
accent
#D651D5
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2A2971

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

Preview Lab → · Contrast checker → · Palette generator →

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