#2A2571#2A2571

#2A2571 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.126 H 279.5°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#2A2571
RGBrgb(42, 37, 113)
HSLhsl(244, 51%, 29%)
HSVhsv(244, 67%, 44%)
CMYKcmyk(62.8%, 67.3%, 0%, 55.7%)
CIE-LABlab(20.07, 26.67, -43.25)
CIE-LCHlch(20.07, 50.82, 301.66°)
OKLaboklab(32.21% 0.0209 -0.1245)
OKLCHoklch(32.21% 0.126 279.5)
XYZxyz(4.5961, 3.0073, 15.9579)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2571 #6C7125
analogous
#254671 #2A2571 #502571
triadic
#2A2571 #712A25 #25712A
tetradic
#2A2571 #712546 #6C7125 #257150
square
#2A2571 #712546 #6C7125 #257150
split-complementary
#2A2571 #715025 #467125
monochromatic
#090817 #191643 #2A2571 #3B349F #544CC4

Accessibility & contrast

On white

13.11
#2A2571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2A2571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2571
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2571#FFFFFF#000000##FFFFFF
##2A25711.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a2571;
/* rgb */ color: rgb(42, 37, 113);
/* oklch */ color: oklch(32.2% 0.126 279.5);
Tailwind
colors: {
  custom: {
    50: '#6c609b',
    500: '#2a2571',
    950: '#000000',
  },
}
SCSS
$custom: #2a2571;
$custom-light: #6c609b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2571",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 113
  },
  "hsl": {
    "h": 243.947,
    "s": 50.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32209,
    "c": 0.12624,
    "h": 279.5
  },
  "luminance": 0.03008
}

Semantic roles & 50–950 ramp

primary
#2A2571
secondary
#9EA44E
accent
#DA4ED1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2A2571

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

Preview Lab → · Contrast checker → · Palette generator →

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