#2A2276#2A2276

#2A2276 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.137 H 279.7°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#2A2276
RGBrgb(42, 34, 118)
HSLhsl(246, 55%, 30%)
HSVhsv(246, 71%, 46%)
CMYKcmyk(64.4%, 71.2%, 0%, 53.7%)
CIE-LABlab(19.82, 30.37, -46.88)
CIE-LCHlch(19.82, 55.86, 302.94°)
OKLaboklab(32.17% 0.023 -0.1351)
OKLCHoklch(32.17% 0.137 279.7)
XYZxyz(4.7958, 2.9439, 17.4515)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2276 #6E7622
analogous
#224476 #2A2276 #542276
triadic
#2A2276 #762A22 #22762A
tetradic
#2A2276 #762244 #6E7622 #227654
square
#2A2276 #762244 #6E7622 #227654
split-complementary
#2A2276 #765422 #447622
monochromatic
#080718 #191446 #2A2276 #3B30A6 #5448CA

Accessibility & contrast

On white

13.22
#2A2276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2A2276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2276
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2276#FFFFFF#000000##FFFFFF
##2A22761.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#003849
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a2276;
/* rgb */ color: rgb(42, 34, 118);
/* oklch */ color: oklch(32.2% 0.137 279.7);
Tailwind
colors: {
  custom: {
    50: '#6e5e9e',
    500: '#2a2276',
    950: '#000000',
  },
}
SCSS
$custom: #2a2276;
$custom-light: #6e5e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2276",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 245.714,
    "s": 55.263,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32169,
    "c": 0.13709,
    "h": 279.7
  },
  "luminance": 0.02944
}

Semantic roles & 50–950 ramp

primary
#2A2276
secondary
#A0A94B
accent
#DF49D0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2A2276

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

Preview Lab → · Contrast checker → · Palette generator →

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