#2A2173#2A2173

#2A2173 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.134 H 280.4°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#2A2173
RGBrgb(42, 33, 115)
HSLhsl(247, 55%, 29%)
HSVhsv(247, 71%, 45%)
CMYKcmyk(63.5%, 71.3%, 0%, 54.9%)
CIE-LABlab(19.30, 29.97, -45.81)
CIE-LCHlch(19.30, 54.74, 303.19°)
OKLaboklab(31.71% 0.0243 -0.132)
OKLCHoklch(31.71% 0.134 280.4)
XYZxyz(4.5922, 2.8174, 16.5182)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2173 #6A7321
analogous
#214173 #2A2173 #532173
triadic
#2A2173 #732A21 #21732A
tetradic
#2A2173 #732141 #6A7321 #217353
square
#2A2173 #732141 #6A7321 #217353
split-complementary
#2A2173 #735321 #417321
monochromatic
#090718 #191343 #2A2173 #3B2FA3 #5345CA

Accessibility & contrast

On white

13.43
#2A2173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2A2173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2173
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2173#FFFFFF#000000##FFFFFF
##2A21731.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003276
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a2173;
/* rgb */ color: rgb(42, 33, 115);
/* oklch */ color: oklch(31.7% 0.134 280.4);
Tailwind
colors: {
  custom: {
    50: '#6d5d9c',
    500: '#2a2173',
    950: '#000000',
  },
}
SCSS
$custom: #2a2173;
$custom-light: #6d5d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2173",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 246.585,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31705,
    "c": 0.13423,
    "h": 280.4
  },
  "luminance": 0.02818
}

Semantic roles & 50–950 ramp

primary
#2A2173
secondary
#9CA649
accent
#DF49CE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2A2173

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

Preview Lab → · Contrast checker → · Palette generator →

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