#2A3571#2A3571

#2A3571 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.4% C 0.104 H 272.2°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#2A3571
RGBrgb(42, 53, 113)
HSLhsl(231, 46%, 30%)
HSVhsv(231, 63%, 44%)
CMYKcmyk(62.8%, 53.1%, 0%, 55.7%)
CIE-LABlab(24.42, 15.69, -36.21)
CIE-LCHlch(24.42, 39.46, 293.42°)
OKLaboklab(35.44% 0.0041 -0.1036)
OKLCHoklch(35.44% 0.104 272.2)
XYZxyz(5.2076, 4.2303, 16.1617)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3571 #71662A
analogous
#2A5871 #2A3571 #422A71
triadic
#2A3571 #712A35 #35712A
tetradic
#2A3571 #712A58 #71662A #2A7142
square
#2A3571 #712A58 #71662A #2A7142
split-complementary
#2A3571 #71422A #58712A
monochromatic
#090B18 #192044 #2A3571 #3B4A9E #5566C0

Accessibility & contrast

On white

11.37
#2A3571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2A3571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3571
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3571#FFFFFF#000000##FFFFFF
##2A35711.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143D73
Deuteranopia (green-blind)
#053770
Tritanopia (blue-blind)
#00434D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a3571;
/* rgb */ color: rgb(42, 53, 113);
/* oklch */ color: oklch(35.4% 0.104 272.2);
Tailwind
colors: {
  custom: {
    50: '#6b6c9a',
    500: '#2a3571',
    950: '#000000',
  },
}
SCSS
$custom: #2a3571;
$custom-light: #6b6c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3571",
  "rgb": {
    "r": 42,
    "g": 53,
    "b": 113
  },
  "hsl": {
    "h": 230.704,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35437,
    "c": 0.10371,
    "h": 272.2
  },
  "luminance": 0.04231
}

Semantic roles & 50–950 ramp

primary
#2A3571
secondary
#A39754
accent
#C152D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A3571

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

Preview Lab → · Contrast checker → · Palette generator →

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