#2A2452#2A2452

#2A2452 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.4% C 0.081 H 286.3°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#2A2452
RGBrgb(42, 36, 82)
HSLhsl(248, 39%, 23%)
HSVhsv(248, 56%, 32%)
CMYKcmyk(48.8%, 56.1%, 0%, 67.8%)
CIE-LABlab(17.29, 16.41, -27.32)
CIE-LCHlch(17.29, 31.87, 301.00°)
OKLaboklab(29.36% 0.0226 -0.0776)
OKLCHoklch(29.36% 0.081 286.3)
XYZxyz(3.1083, 2.3631, 8.2733)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2452 #4C5224
analogous
#243552 #2A2452 #412452
triadic
#2A2452 #522A24 #24522A
tetradic
#2A2452 #522435 #4C5224 #245241
square
#2A2452 #522435 #4C5224 #245241
split-complementary
#2A2452 #524124 #355224
monochromatic
#0B0915 #141127 #2A2452 #40377D #5649A7

Accessibility & contrast

On white

14.26
#2A2452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2A2452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2452
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2452#FFFFFF#000000##FFFFFF
##2A24521.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2C54
Deuteranopia (green-blind)
#0E2951
Tritanopia (blue-blind)
#1D2E37
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a2452;
/* rgb */ color: rgb(42, 36, 82);
/* oklch */ color: oklch(29.4% 0.081 286.3);
Tailwind
colors: {
  custom: {
    50: '#675e83',
    500: '#2a2452',
    950: '#000000',
  },
}
SCSS
$custom: #2a2452;
$custom-light: #675e83;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2452",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 82
  },
  "hsl": {
    "h": 247.826,
    "s": 38.983,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29359,
    "c": 0.08088,
    "h": 286.3
  },
  "luminance": 0.02363
}

Semantic roles & 50–950 ramp

primary
#2A2452
secondary
#7E864C
accent
#CF59C0
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2A2452

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

Preview Lab → · Contrast checker → · Palette generator →

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