#2A2078#2A2078

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

Color values

HEX#2A2078
RGBrgb(42, 32, 120)
HSLhsl(247, 58%, 30%)
HSVhsv(247, 73%, 47%)
CMYKcmyk(65%, 73.3%, 0%, 52.9%)
CIE-LABlab(19.56, 32.31, -48.59)
CIE-LCHlch(19.56, 58.35, 303.62°)
OKLaboklab(32.04% 0.0243 -0.1401)
OKLCHoklch(32.04% 0.142 279.8)
XYZxyz(4.8604, 2.8810, 18.0656)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2078 #6E7820
analogous
#204278 #2A2078 #562078
triadic
#2A2078 #782A20 #20782A
tetradic
#2A2078 #782042 #6E7820 #207856
square
#2A2078 #782042 #6E7820 #207856
split-complementary
#2A2078 #785620 #427820
monochromatic
#080618 #191348 #2A2078 #3B2DA8 #5445CD

Accessibility & contrast

On white

13.32
#2A2078 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2078
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2078#FFFFFF#000000##FFFFFF
##2A20781.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#003849
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a2078;
/* rgb */ color: rgb(42, 32, 120);
/* oklch */ color: oklch(32.0% 0.142 279.8);
Tailwind
colors: {
  custom: {
    50: '#6e5da0',
    500: '#2a2078',
    950: '#000000',
  },
}
SCSS
$custom: #2a2078;
$custom-light: #6e5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2078",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 120
  },
  "hsl": {
    "h": 246.818,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32044,
    "c": 0.14222,
    "h": 279.8
  },
  "luminance": 0.02881
}

Semantic roles & 50–950 ramp

primary
#2A2078
secondary
#A0AB48
accent
#E147D0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2A2078

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

Preview Lab → · Contrast checker → · Palette generator →

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