#2A2C81#2A2C81

#2A2C81 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.140 H 275.4°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#2A2C81
RGBrgb(42, 44, 129)
HSLhsl(239, 51%, 34%)
HSVhsv(239, 67%, 51%)
CMYKcmyk(67.4%, 65.9%, 0%, 49.4%)
CIE-LABlab(23.26, 27.80, -48.23)
CIE-LCHlch(23.26, 55.67, 299.95°)
OKLaboklab(34.99% 0.0132 -0.1391)
OKLCHoklch(34.99% 0.14 275.4)
XYZxyz(5.8167, 3.8781, 21.2066)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C81 #817F2A
analogous
#2A5781 #2A2C81 #532A81
triadic
#2A2C81 #812A2C #2C812A
tetradic
#2A2C81 #812A57 #817F2A #2A8153
square
#2A2C81 #812A57 #817F2A #2A8153
split-complementary
#2A2C81 #81532A #57812A
monochromatic
#0C0D25 #1B1C53 #2A2C81 #393CAF #5C5ECA

Accessibility & contrast

On white

11.83
#2A2C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2C81
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C81#FFFFFF#000000##FFFFFF
##2A2C811.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#00347F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2c81;
/* rgb */ color: rgb(42, 44, 129);
/* oklch */ color: oklch(35.0% 0.140 275.4);
Tailwind
colors: {
  custom: {
    50: '#6f65a6',
    500: '#2a2c81',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c81;
$custom-light: #6f65a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c81",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 238.621,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34985,
    "c": 0.1397,
    "h": 275.4
  },
  "luminance": 0.03879
}

Semantic roles & 50–950 ramp

primary
#2A2C81
secondary
#AFAD57
accent
#D74DDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2A2C81

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

Preview Lab → · Contrast checker → · Palette generator →

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