#2A2179#2A2179

#2A2179 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.142 H 279.4°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#2A2179
RGBrgb(42, 33, 121)
HSLhsl(246, 57%, 30%)
HSVhsv(246, 73%, 47%)
CMYKcmyk(65.3%, 72.7%, 0%, 52.5%)
CIE-LABlab(19.88, 32.04, -48.70)
CIE-LCHlch(19.88, 58.29, 303.34°)
OKLaboklab(32.31% 0.0233 -0.1405)
OKLCHoklch(32.31% 0.142 279.4)
XYZxyz(4.9488, 2.9600, 18.3960)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2179 #707921
analogous
#214479 #2A2179 #562179
triadic
#2A2179 #792A21 #21792A
tetradic
#2A2179 #792144 #707921 #217956
square
#2A2179 #792144 #707921 #217956
split-complementary
#2A2179 #795621 #447921
monochromatic
#090719 #191449 #2A2179 #3B2EA9 #5547CD

Accessibility & contrast

On white

13.19
#2A2179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2179
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2179#FFFFFF#000000##FFFFFF
##2A21791.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a2179;
/* rgb */ color: rgb(42, 33, 121);
/* oklch */ color: oklch(32.3% 0.142 279.4);
Tailwind
colors: {
  custom: {
    50: '#6e5da1',
    500: '#2a2179',
    950: '#000000',
  },
}
SCSS
$custom: #2a2179;
$custom-light: #6e5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2179",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 121
  },
  "hsl": {
    "h": 246.136,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32305,
    "c": 0.14238,
    "h": 279.4
  },
  "luminance": 0.0296
}

Semantic roles & 50–950 ramp

primary
#2A2179
secondary
#A2AC4A
accent
#E047D1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A2179

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

Preview Lab → · Contrast checker → · Palette generator →

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