#2A2450#2A2450

#2A2450 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.2% C 0.078 H 286.8°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#2A2450
RGBrgb(42, 36, 80)
HSLhsl(248, 38%, 23%)
HSVhsv(248, 55%, 31%)
CMYKcmyk(47.5%, 55%, 0%, 68.6%)
CIE-LABlab(17.15, 15.72, -26.19)
CIE-LCHlch(17.15, 30.55, 300.98°)
OKLaboklab(29.21% 0.0225 -0.0743)
OKLCHoklch(29.21% 0.078 286.8)
XYZxyz(3.0333, 2.3331, 7.8784)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2450 #4A5024
analogous
#243450 #2A2450 #402450
triadic
#2A2450 #502A24 #24502A
tetradic
#2A2450 #502434 #4A5024 #245040
square
#2A2450 #502434 #4A5024 #245040
split-complementary
#2A2450 #504024 #345024
monochromatic
#0B0915 #141126 #2A2450 #40377A #564AA4

Accessibility & contrast

On white

14.32
#2A2450 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2450
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2450#FFFFFF#000000##FFFFFF
##2A24501.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112B52
Deuteranopia (green-blind)
#11294F
Tritanopia (blue-blind)
#1F2D36
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a2450;
/* rgb */ color: rgb(42, 36, 80);
/* oklch */ color: oklch(29.2% 0.078 286.8);
Tailwind
colors: {
  custom: {
    50: '#665e81',
    500: '#2a2450',
    950: '#000000',
  },
}
SCSS
$custom: #2a2450;
$custom-light: #665e81;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2450",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 80
  },
  "hsl": {
    "h": 248.182,
    "s": 37.931,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29208,
    "c": 0.07767,
    "h": 286.8
  },
  "luminance": 0.02333
}

Semantic roles & 50–950 ramp

primary
#2A2450
secondary
#7C834C
accent
#CE5ABE
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2A2450

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

Preview Lab → · Contrast checker → · Palette generator →

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