#2A2DC4#2A2DC4

#2A2DC4 is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.1% C 0.224 H 270.7°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#2A2DC4
RGBrgb(42, 45, 196)
HSLhsl(239, 65%, 47%)
HSVhsv(239, 79%, 77%)
CMYKcmyk(78.6%, 77%, 0%, 23.1%)
CIE-LABlab(30.29, 50.30, -77.34)
CIE-LCHlch(30.29, 92.26, 303.04°)
OKLaboklab(42.05% 0.0028 -0.224)
OKLCHoklch(42.05% 0.224 270.7)
XYZxyz(11.8537, 6.3532, 52.8154)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2DC4 #C4C12A
analogous
#2A7AC4 #2A2DC4 #742AC4
triadic
#2A2DC4 #C42A2D #2DC42A
tetradic
#2A2DC4 #C42A7A #C4C12A #2AC474
square
#2A2DC4 #C42A7A #C4C12A #2AC474
split-complementary
#2A2DC4 #C4742A #7AC42A
monochromatic
#14165F #1F2192 #2A2DC4 #5154DA #8486E5

Accessibility & contrast

On white

9.25
#2A2DC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2A2DC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2DC4
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2DC4#FFFFFF#000000##FFFFFF
##2A2DC41.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC8
Deuteranopia (green-blind)
#003FC1
Tritanopia (blue-blind)
#005B77
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a2dc4;
/* rgb */ color: rgb(42, 45, 196);
/* oklch */ color: oklch(42.1% 0.224 270.7);
Tailwind
colors: {
  custom: {
    50: '#7f68d7',
    500: '#2a2dc4',
    950: '#000000',
  },
}
SCSS
$custom: #2a2dc4;
$custom-light: #7f68d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2dc4",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 196
  },
  "hsl": {
    "h": 238.831,
    "s": 64.706,
    "l": 46.667
  },
  "oklch": {
    "l": 0.42053,
    "c": 0.22398,
    "h": 270.7
  },
  "luminance": 0.06355
}

Semantic roles & 50–950 ramp

primary
#2A2DC4
secondary
#CECC7C
accent
#E440E8
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #2A2DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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