#2A2172#2A2172

#2A2172 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.133 H 280.6°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#2A2172
RGBrgb(42, 33, 114)
HSLhsl(247, 55%, 29%)
HSVhsv(247, 71%, 45%)
CMYKcmyk(63.2%, 71.1%, 0%, 55.3%)
CIE-LABlab(19.20, 29.62, -45.32)
CIE-LCHlch(19.20, 54.14, 303.17°)
OKLaboklab(31.61% 0.0245 -0.1306)
OKLCHoklch(31.61% 0.133 280.6)
XYZxyz(4.5350, 2.7945, 16.2167)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2172 #697221
analogous
#214172 #2A2172 #532172
triadic
#2A2172 #722A21 #21722A
tetradic
#2A2172 #722141 #697221 #217253
square
#2A2172 #722141 #697221 #217253
split-complementary
#2A2172 #725321 #417221
monochromatic
#090718 #191343 #2A2172 #3B2FA1 #5344C9

Accessibility & contrast

On white

13.47
#2A2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2172
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2172#FFFFFF#000000##FFFFFF
##2A21721.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#003646
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a2172;
/* rgb */ color: rgb(42, 33, 114);
/* oklch */ color: oklch(31.6% 0.133 280.6);
Tailwind
colors: {
  custom: {
    50: '#6d5d9b',
    500: '#2a2172',
    950: '#000000',
  },
}
SCSS
$custom: #2a2172;
$custom-light: #6d5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2172",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 246.667,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31607,
    "c": 0.13285,
    "h": 280.6
  },
  "luminance": 0.02795
}

Semantic roles & 50–950 ramp

primary
#2A2172
secondary
#9BA549
accent
#DE49CE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2A2172

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

Preview Lab → · Contrast checker → · Palette generator →

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