#2A2CAA#2A2CAA

#2A2CAA is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.194 H 272.3°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#2A2CAA
RGBrgb(42, 44, 170)
HSLhsl(239, 60%, 42%)
HSVhsv(239, 75%, 67%)
CMYKcmyk(75.3%, 74.1%, 0%, 33.3%)
CIE-LABlab(27.28, 42.25, -66.86)
CIE-LCHlch(27.28, 79.09, 302.29°)
OKLaboklab(39.1% 0.0078 -0.1935)
OKLCHoklch(39.1% 0.194 272.3)
XYZxyz(9.1088, 5.1949, 38.5451)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2CAA #AAA82A
analogous
#2A6CAA #2A2CAA #682AAA
triadic
#2A2CAA #AA2A2C #2CAA2A
tetradic
#2A2CAA #AA2A6C #AAA82A #2AAA68
square
#2A2CAA #AA2A6C #AAA82A #2AAA68
split-complementary
#2A2CAA #AA682A #6CAA2A
monochromatic
#121348 #1E1F79 #2A2CAA #4143D0 #7274DC

Accessibility & contrast

On white

10.30
#2A2CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2A2CAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2CAA
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2CAA#FFFFFF#000000##FFFFFF
##2A2CAA1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AE
Deuteranopia (green-blind)
#003AA8
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a2caa;
/* rgb */ color: rgb(42, 44, 170);
/* oklch */ color: oklch(39.1% 0.194 272.3);
Tailwind
colors: {
  custom: {
    50: '#7967c5',
    500: '#2a2caa',
    950: '#000000',
  },
}
SCSS
$custom: #2a2caa;
$custom-light: #7967c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2caa",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 239.063,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.391,
    "c": 0.19365,
    "h": 272.3
  },
  "luminance": 0.05196
}

Semantic roles & 50–950 ramp

primary
#2A2CAA
secondary
#C3C26C
accent
#E144E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A2CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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