#2A2650#2A2650

#2A2650 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.6% C 0.074 H 285.3°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#2A2650
RGBrgb(42, 38, 80)
HSLhsl(246, 36%, 23%)
HSVhsv(246, 53%, 31%)
CMYKcmyk(47.5%, 52.5%, 0%, 68.6%)
CIE-LABlab(17.73, 14.31, -25.27)
CIE-LCHlch(17.73, 29.04, 299.52°)
OKLaboklab(29.64% 0.0195 -0.0716)
OKLCHoklch(29.64% 0.074 285.3)
XYZxyz(3.0955, 2.4575, 7.8991)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2650 #4C5026
analogous
#263750 #2A2650 #3F2650
triadic
#2A2650 #502A26 #26502A
tetradic
#2A2650 #502637 #4C5026 #26503F
square
#2A2650 #502637 #4C5026 #26503F
split-complementary
#2A2650 #503F26 #375026
monochromatic
#0B0A15 #141227 #2A2650 #403A79 #564DA3

Accessibility & contrast

On white

14.08
#2A2650 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2A2650 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2650
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2650#FFFFFF#000000##FFFFFF
##2A26501.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152D52
Deuteranopia (green-blind)
#142A4F
Tritanopia (blue-blind)
#1E2F37
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a2650;
/* rgb */ color: rgb(42, 38, 80);
/* oklch */ color: oklch(29.6% 0.074 285.3);
Tailwind
colors: {
  custom: {
    50: '#666081',
    500: '#2a2650',
    950: '#000000',
  },
}
SCSS
$custom: #2a2650;
$custom-light: #666081;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2650",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 80
  },
  "hsl": {
    "h": 245.714,
    "s": 35.593,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29643,
    "c": 0.07424,
    "h": 285.3
  },
  "luminance": 0.02458
}

Semantic roles & 50–950 ramp

primary
#2A2650
secondary
#7E834F
accent
#CC5CC1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2A2650

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

Preview Lab → · Contrast checker → · Palette generator →

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