#2A2C79#2A2C79

#2A2C79 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.128 H 276.1°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#2A2C79
RGBrgb(42, 44, 121)
HSLhsl(238, 48%, 32%)
HSVhsv(238, 65%, 47%)
CMYKcmyk(65.3%, 63.6%, 0%, 52.5%)
CIE-LABlab(22.56, 24.87, -44.32)
CIE-LCHlch(22.56, 50.82, 299.30°)
OKLaboklab(34.25% 0.0137 -0.1276)
OKLCHoklch(34.25% 0.128 276.1)
XYZxyz(5.3056, 3.6737, 18.5149)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C79 #79772A
analogous
#2A5479 #2A2C79 #502A79
triadic
#2A2C79 #792A2C #2C792A
tetradic
#2A2C79 #792A54 #79772A #2A7950
square
#2A2C79 #792A54 #79772A #2A7950
split-complementary
#2A2C79 #79502A #54792A
monochromatic
#0A0B1E #1A1B4C #2A2C79 #3A3DA6 #585BC5

Accessibility & contrast

On white

12.11
#2A2C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A2C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2C79
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C79#FFFFFF#000000##FFFFFF
##2A2C791.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2c79;
/* rgb */ color: rgb(42, 44, 121);
/* oklch */ color: oklch(34.3% 0.128 276.1);
Tailwind
colors: {
  custom: {
    50: '#6d65a0',
    500: '#2a2c79',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c79;
$custom-light: #6d65a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c79",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 121
  },
  "hsl": {
    "h": 238.481,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34251,
    "c": 0.12831,
    "h": 276.1
  },
  "luminance": 0.03674
}

Semantic roles & 50–950 ramp

primary
#2A2C79
secondary
#ABA854
accent
#D550D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08050F
muted
#7A7A7E

Preview Lab

Preview with #2A2C79

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

Preview Lab → · Contrast checker → · Palette generator →

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