#2A2A97#2A2A97

#2A2A97 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.172 H 274.0°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#2A2A97
RGBrgb(42, 42, 151)
HSLhsl(240, 56%, 38%)
HSVhsv(240, 72%, 59%)
CMYKcmyk(72.2%, 72.2%, 0%, 40.8%)
CIE-LABlab(24.90, 36.91, -59.24)
CIE-LCHlch(24.90, 69.80, 301.92°)
OKLaboklab(36.81% 0.012 -0.1713)
OKLCHoklch(36.81% 0.172 274)
XYZxyz(7.3669, 4.3818, 29.7297)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A97 #97972A
analogous
#2A6097 #2A2A97 #602A97
triadic
#2A2A97 #972A2A #2A972A
tetradic
#2A2A97 #972A60 #97972A #2A9760
square
#2A2A97 #972A60 #97972A #2A9760
split-complementary
#2A2A97 #97602A #60972A
monochromatic
#0F0F37 #1D1D67 #2A2A97 #3737C7 #6767D5

Accessibility & contrast

On white

11.19
#2A2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2A2A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A97
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A97#FFFFFF#000000##FFFFFF
##2A2A971.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a2a97;
/* rgb */ color: rgb(42, 42, 151);
/* oklch */ color: oklch(36.8% 0.172 274.0);
Tailwind
colors: {
  custom: {
    50: '#7464b7',
    500: '#2a2a97',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a97;
$custom-light: #7464b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a97",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 240,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36807,
    "c": 0.17171,
    "h": 274
  },
  "luminance": 0.04383
}

Semantic roles & 50–950 ramp

primary
#2A2A97
secondary
#BBBB62
accent
#E048E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2A2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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