#2A2C82#2A2C82

#2A2C82 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.141 H 275.3°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#2A2C82
RGBrgb(42, 44, 130)
HSLhsl(239, 51%, 34%)
HSVhsv(239, 68%, 51%)
CMYKcmyk(67.7%, 66.2%, 0%, 49%)
CIE-LABlab(23.35, 28.16, -48.72)
CIE-LCHlch(23.35, 56.27, 300.03°)
OKLaboklab(35.08% 0.0131 -0.1405)
OKLCHoklch(35.08% 0.141 275.3)
XYZxyz(5.8835, 3.9048, 21.5584)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C82 #82802A
analogous
#2A5882 #2A2C82 #542A82
triadic
#2A2C82 #822A2C #2C822A
tetradic
#2A2C82 #822A58 #82802A #2A8254
square
#2A2C82 #822A58 #82802A #2A8254
split-complementary
#2A2C82 #82542A #58822A
monochromatic
#0C0D25 #1B1C54 #2A2C82 #393CB0 #5C5FCA

Accessibility & contrast

On white

11.79
#2A2C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2A2C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2C82
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C82#FFFFFF#000000##FFFFFF
##2A2C821.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#003480
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2c82;
/* rgb */ color: rgb(42, 44, 130);
/* oklch */ color: oklch(35.1% 0.141 275.3);
Tailwind
colors: {
  custom: {
    50: '#6f65a7',
    500: '#2a2c82',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c82;
$custom-light: #6f65a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c82",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 130
  },
  "hsl": {
    "h": 238.636,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35078,
    "c": 0.1411,
    "h": 275.3
  },
  "luminance": 0.03905
}

Semantic roles & 50–950 ramp

primary
#2A2C82
secondary
#B0AE58
accent
#D74DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #2A2C82

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

Preview Lab → · Contrast checker → · Palette generator →

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