#2A2CAB#2A2CAB

#2A2CAB is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.2% C 0.195 H 272.2°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#2A2CAB
RGBrgb(42, 44, 171)
HSLhsl(239, 61%, 42%)
HSVhsv(239, 75%, 67%)
CMYKcmyk(75.4%, 74.3%, 0%, 32.9%)
CIE-LABlab(27.39, 42.58, -67.28)
CIE-LCHlch(27.39, 79.63, 302.33°)
OKLaboklab(39.21% 0.0076 -0.1947)
OKLCHoklch(39.21% 0.195 272.2)
XYZxyz(9.2037, 5.2329, 39.0452)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2CAB #ABA92A
analogous
#2A6DAB #2A2CAB #692AAB
triadic
#2A2CAB #AB2A2C #2CAB2A
tetradic
#2A2CAB #AB2A6D #ABA92A #2AAB69
square
#2A2CAB #AB2A6D #ABA92A #2AAB69
split-complementary
#2A2CAB #AB692A #6DAB2A
monochromatic
#121349 #1E1F7A #2A2CAB #4244D1 #7374DD

Accessibility & contrast

On white

10.26
#2A2CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2A2CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2CAB
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2CAB#FFFFFF#000000##FFFFFF
##2A2CAB1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AF
Deuteranopia (green-blind)
#003AA9
Tritanopia (blue-blind)
#005169
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a2cab;
/* rgb */ color: rgb(42, 44, 171);
/* oklch */ color: oklch(39.2% 0.195 272.2);
Tailwind
colors: {
  custom: {
    50: '#7967c5',
    500: '#2a2cab',
    950: '#000000',
  },
}
SCSS
$custom: #2a2cab;
$custom-light: #7967c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2cab",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 239.07,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39206,
    "c": 0.19489,
    "h": 272.2
  },
  "luminance": 0.05234
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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