#2A2C71#2A2C71

#2A2C71 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.5% C 0.117 H 276.8°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#2A2C71
RGBrgb(42, 44, 113)
HSLhsl(238, 46%, 30%)
HSVhsv(238, 63%, 44%)
CMYKcmyk(62.8%, 61.1%, 0%, 55.7%)
CIE-LABlab(21.89, 21.94, -40.29)
CIE-LCHlch(21.89, 45.88, 298.57°)
OKLaboklab(33.55% 0.0139 -0.1157)
OKLCHoklch(33.55% 0.117 276.8)
XYZxyz(4.8352, 3.4855, 16.0376)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C71 #716F2A
analogous
#2A4F71 #2A2C71 #4B2A71
triadic
#2A2C71 #712A2C #2C712A
tetradic
#2A2C71 #712A4F #716F2A #2A714B
square
#2A2C71 #712A4F #716F2A #2A714B
split-complementary
#2A2C71 #714B2A #4F712A
monochromatic
#090918 #191B44 #2A2C71 #3B3D9E #5558C0

Accessibility & contrast

On white

12.37
#2A2C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2A2C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2C71
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C71#FFFFFF#000000##FFFFFF
##2A2C711.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#003D4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a2c71;
/* rgb */ color: rgb(42, 44, 113);
/* oklch */ color: oklch(33.5% 0.117 276.8);
Tailwind
colors: {
  custom: {
    50: '#6c659a',
    500: '#2a2c71',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c71;
$custom-light: #6c659a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c71",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 113
  },
  "hsl": {
    "h": 238.31,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33546,
    "c": 0.11658,
    "h": 276.8
  },
  "luminance": 0.03486
}

Semantic roles & 50–950 ramp

primary
#2A2C71
secondary
#A3A154
accent
#D252D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #2A2C71

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

Preview Lab → · Contrast checker → · Palette generator →

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