#2A2176#2A2176

#2A2176 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.138 H 279.9°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#2A2176
RGBrgb(42, 33, 118)
HSLhsl(246, 56%, 30%)
HSVhsv(246, 72%, 46%)
CMYKcmyk(64.4%, 72%, 0%, 53.7%)
CIE-LABlab(19.59, 31.00, -47.26)
CIE-LCHlch(19.59, 56.52, 303.26°)
OKLaboklab(32% 0.0238 -0.1362)
OKLCHoklch(32% 0.138 279.9)
XYZxyz(4.7677, 2.8876, 17.4422)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2176 #6D7621
analogous
#214376 #2A2176 #552176
triadic
#2A2176 #762A21 #21762A
tetradic
#2A2176 #762143 #6D7621 #217655
square
#2A2176 #762143 #6D7621 #217655
split-complementary
#2A2176 #765521 #437621
monochromatic
#090718 #191446 #2A2176 #3B2EA6 #5446CB

Accessibility & contrast

On white

13.31
#2A2176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2A2176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2176
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2176#FFFFFF#000000##FFFFFF
##2A21761.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#002C74
Tritanopia (blue-blind)
#003848
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a2176;
/* rgb */ color: rgb(42, 33, 118);
/* oklch */ color: oklch(32.0% 0.138 279.9);
Tailwind
colors: {
  custom: {
    50: '#6e5d9e',
    500: '#2a2176',
    950: '#000000',
  },
}
SCSS
$custom: #2a2176;
$custom-light: #6e5d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2176",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 246.353,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32003,
    "c": 0.13832,
    "h": 279.9
  },
  "luminance": 0.02888
}

Semantic roles & 50–950 ramp

primary
#2A2176
secondary
#9FA94A
accent
#E048D0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2A2176

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

Preview Lab → · Contrast checker → · Palette generator →

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