#2A2A71#2A2A71

#2A2A71 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 33.2% C 0.119 H 277.7°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#2A2A71
RGBrgb(42, 42, 113)
HSLhsl(240, 46%, 30%)
HSVhsv(240, 63%, 44%)
CMYKcmyk(62.8%, 62.8%, 0%, 55.7%)
CIE-LABlab(21.36, 23.31, -41.16)
CIE-LCHlch(21.36, 47.30, 299.52°)
OKLaboklab(33.15% 0.016 -0.1183)
OKLCHoklch(33.15% 0.119 277.7)
XYZxyz(4.7625, 3.3401, 16.0133)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A71 #71712A
analogous
#2A4D71 #2A2A71 #4D2A71
triadic
#2A2A71 #712A2A #2A712A
tetradic
#2A2A71 #712A4D #71712A #2A714D
square
#2A2A71 #712A4D #71712A #2A714D
split-complementary
#2A2A71 #714D2A #4D712A
monochromatic
#090918 #191944 #2A2A71 #3B3B9E #5555C0

Accessibility & contrast

On white

12.59
#2A2A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2A2A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A71
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A71#FFFFFF#000000##FFFFFF
##2A2A711.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2a71;
/* rgb */ color: rgb(42, 42, 113);
/* oklch */ color: oklch(33.2% 0.119 277.7);
Tailwind
colors: {
  custom: {
    50: '#6c639a',
    500: '#2a2a71',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a71;
$custom-light: #6c639a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a71",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 240,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33151,
    "c": 0.11939,
    "h": 277.7
  },
  "luminance": 0.0334
}

Semantic roles & 50–950 ramp

primary
#2A2A71
secondary
#A3A354
accent
#D552D5
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2A2A71

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

Preview Lab → · Contrast checker → · Palette generator →

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