#2A2DCA#2A2DCA

#2A2DCA is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.7% C 0.231 H 270.4°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#2A2DCA
RGBrgb(42, 45, 202)
HSLhsl(239, 66%, 48%)
HSVhsv(239, 79%, 79%)
CMYKcmyk(79.2%, 77.7%, 0%, 20.8%)
CIE-LABlab(30.95, 52.22, -79.75)
CIE-LCHlch(30.95, 95.33, 303.22°)
OKLaboklab(42.72% 0.0017 -0.2309)
OKLCHoklch(42.72% 0.231 270.4)
XYZxyz(12.5503, 6.6318, 56.4843)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2DCA #CAC72A
analogous
#2A7DCA #2A2DCA #772ACA
triadic
#2A2DCA #CA2A2D #2DCA2A
tetradic
#2A2DCA #CA2A7D #CAC72A #2ACA77
square
#2A2DCA #CA2A7D #CAC72A #2ACA77
split-complementary
#2A2DCA #CA772A #7DCA2A
monochromatic
#151665 #1F2297 #2A2DCA #5558DC #888AE6

Accessibility & contrast

On white

9.03
#2A2DCA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2A2DCA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2DCA
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2DCA#FFFFFF#000000##FFFFFF
##2A2DCA1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CE
Deuteranopia (green-blind)
#0041C7
Tritanopia (blue-blind)
#005D7B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a2dca;
/* rgb */ color: rgb(42, 45, 202);
/* oklch */ color: oklch(42.7% 0.231 270.4);
Tailwind
colors: {
  custom: {
    50: '#8169dc',
    500: '#2a2dca',
    950: '#000000',
  },
}
SCSS
$custom: #2a2dca;
$custom-light: #8169dc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2dca",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 202
  },
  "hsl": {
    "h": 238.875,
    "s": 65.574,
    "l": 47.843
  },
  "oklch": {
    "l": 0.42717,
    "c": 0.23095,
    "h": 270.4
  },
  "luminance": 0.06633
}

Semantic roles & 50–950 ramp

primary
#2A2DCA
secondary
#D0CE80
accent
#E53FE9
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #2A2DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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