#2A2C84#2A2C84

#2A2C84 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.144 H 275.2°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#2A2C84
RGBrgb(42, 44, 132)
HSLhsl(239, 52%, 34%)
HSVhsv(239, 68%, 52%)
CMYKcmyk(68.2%, 66.7%, 0%, 48.2%)
CIE-LABlab(23.54, 28.88, -49.68)
CIE-LCHlch(23.54, 57.46, 300.18°)
OKLaboklab(35.27% 0.0129 -0.1433)
OKLCHoklch(35.27% 0.144 275.2)
XYZxyz(6.0190, 3.9590, 22.2723)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C84 #84822A
analogous
#2A5984 #2A2C84 #552A84
triadic
#2A2C84 #842A2C #2C842A
tetradic
#2A2C84 #842A59 #84822A #2A8455
square
#2A2C84 #842A59 #84822A #2A8455
split-complementary
#2A2C84 #84552A #59842A
monochromatic
#0C0D27 #1B1D56 #2A2C84 #393BB2 #5D5FCB

Accessibility & contrast

On white

11.72
#2A2C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2A2C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2C84
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C84#FFFFFF#000000##FFFFFF
##2A2C841.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C87
Deuteranopia (green-blind)
#003482
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2c84;
/* rgb */ color: rgb(42, 44, 132);
/* oklch */ color: oklch(35.3% 0.144 275.2);
Tailwind
colors: {
  custom: {
    50: '#7065a9',
    500: '#2a2c84',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c84;
$custom-light: #7065a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c84",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 132
  },
  "hsl": {
    "h": 238.667,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35267,
    "c": 0.14389,
    "h": 275.2
  },
  "luminance": 0.0396
}

Semantic roles & 50–950 ramp

primary
#2A2C84
secondary
#B1AF59
accent
#D84DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #2A2C84

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

Preview Lab → · Contrast checker → · Palette generator →

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