#2A2CB6#2A2CB6

#2A2CB6 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.4% C 0.208 H 271.6°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#2A2CB6
RGBrgb(42, 44, 182)
HSLhsl(239, 63%, 44%)
HSVhsv(239, 77%, 71%)
CMYKcmyk(76.9%, 75.8%, 0%, 28.6%)
CIE-LABlab(28.56, 46.26, -71.92)
CIE-LCHlch(28.56, 85.51, 302.75°)
OKLaboklab(40.39% 0.0057 -0.2082)
OKLCHoklch(40.39% 0.208 271.6)
XYZxyz(10.2962, 5.6699, 44.7987)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2CB6 #B6B42A
analogous
#2A72B6 #2A2CB6 #6E2AB6
triadic
#2A2CB6 #B62A2C #2CB62A
tetradic
#2A2CB6 #B62A72 #B6B42A #2AB66E
square
#2A2CB6 #B62A72 #B6B42A #2AB66E
split-complementary
#2A2CB6 #B66E2A #72B62A
monochromatic
#131453 #1F2084 #2A2CB6 #484AD5 #7A7CE0

Accessibility & contrast

On white

9.84
#2A2CB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2A2CB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2CB6
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2CB6#FFFFFF#000000##FFFFFF
##2A2CB61.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABA
Deuteranopia (green-blind)
#003CB4
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a2cb6;
/* rgb */ color: rgb(42, 44, 182);
/* oklch */ color: oklch(40.4% 0.208 271.6);
Tailwind
colors: {
  custom: {
    50: '#7c67cd',
    500: '#2a2cb6',
    950: '#000000',
  },
}
SCSS
$custom: #2a2cb6;
$custom-light: #7c67cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2cb6",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 182
  },
  "hsl": {
    "h": 239.143,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40388,
    "c": 0.20829,
    "h": 271.6
  },
  "luminance": 0.05671
}

Semantic roles & 50–950 ramp

primary
#2A2CB6
secondary
#C8C773
accent
#E342E6
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A2CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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