#2A207A#2A207A

#2A207A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.145 H 279.5°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#2A207A
RGBrgb(42, 32, 122)
HSLhsl(247, 58%, 30%)
HSVhsv(247, 74%, 48%)
CMYKcmyk(65.6%, 73.8%, 0%, 52.2%)
CIE-LABlab(19.76, 32.99, -49.54)
CIE-LCHlch(19.76, 59.52, 303.66°)
OKLaboklab(32.25% 0.0239 -0.1429)
OKLCHoklch(32.25% 0.145 279.5)
XYZxyz(4.9831, 2.9300, 18.7115)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A207A #707A20
analogous
#20437A #2A207A #57207A
triadic
#2A207A #7A2A20 #207A2A
tetradic
#2A207A #7A2043 #707A20 #207A57
square
#2A207A #7A2043 #707A20 #207A57
split-complementary
#2A207A #7A5720 #437A20
monochromatic
#090719 #19134A #2A207A #3B2DAA #5546CE

Accessibility & contrast

On white

13.24
#2A207A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A207A
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A207A#FFFFFF#000000##FFFFFF
##2A207A1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a207a;
/* rgb */ color: rgb(42, 32, 122);
/* oklch */ color: oklch(32.2% 0.145 279.5);
Tailwind
colors: {
  custom: {
    50: '#6f5da1',
    500: '#2a207a',
    950: '#000000',
  },
}
SCSS
$custom: #2a207a;
$custom-light: #6f5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a207a",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 122
  },
  "hsl": {
    "h": 246.667,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32249,
    "c": 0.14489,
    "h": 279.5
  },
  "luminance": 0.0293
}

Semantic roles & 50–950 ramp

primary
#2A207A
secondary
#A2AD49
accent
#E246D0
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A207A

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

Preview Lab → · Contrast checker → · Palette generator →

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