#2A2DAB#2A2DAB

#2A2DAB is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.4% C 0.194 H 272.1°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#2A2DAB
RGBrgb(42, 45, 171)
HSLhsl(239, 61%, 42%)
HSVhsv(239, 75%, 67%)
CMYKcmyk(75.4%, 73.7%, 0%, 32.9%)
CIE-LABlab(27.60, 42.00, -66.94)
CIE-LCHlch(27.60, 79.03, 302.11°)
OKLaboklab(39.35% 0.0071 -0.1937)
OKLCHoklch(39.35% 0.194 272.1)
XYZxyz(9.2414, 5.3083, 39.0577)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2DAB #ABA82A
analogous
#2A6EAB #2A2DAB #682AAB
triadic
#2A2DAB #AB2A2D #2DAB2A
tetradic
#2A2DAB #AB2A6E #ABA82A #2AAB68
square
#2A2DAB #AB2A6E #ABA82A #2AAB68
split-complementary
#2A2DAB #AB682A #6EAB2A
monochromatic
#121349 #1E207A #2A2DAB #4245D1 #7375DD

Accessibility & contrast

On white

10.19
#2A2DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2A2DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2DAB
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2DAB#FFFFFF#000000##FFFFFF
##2A2DAB1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2dab;
/* rgb */ color: rgb(42, 45, 171);
/* oklch */ color: oklch(39.4% 0.194 272.1);
Tailwind
colors: {
  custom: {
    50: '#7967c5',
    500: '#2a2dab',
    950: '#000000',
  },
}
SCSS
$custom: #2a2dab;
$custom-light: #7967c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2dab",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 238.605,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39353,
    "c": 0.19388,
    "h": 272.1
  },
  "luminance": 0.05309
}

Semantic roles & 50–950 ramp

primary
#2A2DAB
secondary
#C4C26D
accent
#E044E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A2DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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