#2A2DB7#2A2DB7

#2A2DB7 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.6% C 0.209 H 271.4°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#2A2DB7
RGBrgb(42, 45, 183)
HSLhsl(239, 63%, 44%)
HSVhsv(239, 77%, 72%)
CMYKcmyk(77%, 75.4%, 0%, 28.2%)
CIE-LABlab(28.87, 46.04, -72.01)
CIE-LCHlch(28.87, 85.47, 302.59°)
OKLaboklab(40.64% 0.0051 -0.2085)
OKLCHoklch(40.64% 0.209 271.4)
XYZxyz(10.4376, 5.7868, 45.3574)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2DB7 #B7B42A
analogous
#2A74B7 #2A2DB7 #6D2AB7
triadic
#2A2DB7 #B72A2D #2DB72A
tetradic
#2A2DB7 #B72A74 #B7B42A #2AB76D
square
#2A2DB7 #B72A74 #B7B42A #2AB76D
split-complementary
#2A2DB7 #B76D2A #74B72A
monochromatic
#131553 #1F2185 #2A2DB7 #494CD5 #7B7DE1

Accessibility & contrast

On white

9.73
#2A2DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2A2DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2DB7
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2DB7#FFFFFF#000000##FFFFFF
##2A2DB71.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBB
Deuteranopia (green-blind)
#003DB5
Tritanopia (blue-blind)
#005670
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a2db7;
/* rgb */ color: rgb(42, 45, 183);
/* oklch */ color: oklch(40.6% 0.209 271.4);
Tailwind
colors: {
  custom: {
    50: '#7c68ce',
    500: '#2a2db7',
    950: '#000000',
  },
}
SCSS
$custom: #2a2db7;
$custom-light: #7c68ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2db7",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 238.723,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40635,
    "c": 0.20855,
    "h": 271.4
  },
  "luminance": 0.05788
}

Semantic roles & 50–950 ramp

primary
#2A2DB7
secondary
#C9C774
accent
#E242E6
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A2DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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