#2D2AB7#2D2AB7

#2D2AB7 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.4% C 0.211 H 272.6°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#2D2AB7
RGBrgb(45, 42, 183)
HSLhsl(241, 63%, 44%)
HSVhsv(241, 77%, 72%)
CMYKcmyk(75.4%, 77%, 0%, 28.2%)
CIE-LABlab(28.46, 47.91, -72.67)
CIE-LCHlch(28.46, 87.05, 303.40°)
OKLaboklab(40.39% 0.0097 -0.2103)
OKLCHoklch(40.39% 0.211 272.6)
XYZxyz(10.4545, 5.6316, 45.3266)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2AB7 #B4B72A
analogous
#2A6DB7 #2D2AB7 #742AB7
triadic
#2D2AB7 #B72D2A #2AB72D
tetradic
#2D2AB7 #B72A6D #B4B72A #2AB774
square
#2D2AB7 #B72A6D #B4B72A #2AB774
split-complementary
#2D2AB7 #B7742A #6DB72A
monochromatic
#151353 #211F85 #2D2AB7 #4C49D5 #7D7BE1

Accessibility & contrast

On white

9.87
#2D2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2D2AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2AB7
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2AB7#FFFFFF#000000##FFFFFF
##2D2AB71.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABB
Deuteranopia (green-blind)
#003CB5
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d2ab7;
/* rgb */ color: rgb(45, 42, 183);
/* oklch */ color: oklch(40.4% 0.211 272.6);
Tailwind
colors: {
  custom: {
    50: '#7d66ce',
    500: '#2d2ab7',
    950: '#000000',
  },
}
SCSS
$custom: #2d2ab7;
$custom-light: #7d66ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2ab7",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 241.277,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40395,
    "c": 0.21054,
    "h": 272.6
  },
  "luminance": 0.05633
}

Semantic roles & 50–950 ramp

primary
#2D2AB7
secondary
#C7C974
accent
#E642E2
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #2D2AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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