#2D2DC7#2D2DC7

#2D2DC7 is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.5% C 0.227 H 271.4°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#2D2DC7
RGBrgb(45, 45, 199)
HSLhsl(240, 63%, 48%)
HSVhsv(240, 77%, 78%)
CMYKcmyk(77.4%, 77.4%, 0%, 22%)
CIE-LABlab(30.78, 51.46, -78.28)
CIE-LCHlch(30.78, 93.68, 303.32°)
OKLaboklab(42.54% 0.0054 -0.2266)
OKLCHoklch(42.54% 0.227 271.4)
XYZxyz(12.3259, 6.5568, 54.6377)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2DC7 #C7C72D
analogous
#2D7AC7 #2D2DC7 #7A2DC7
triadic
#2D2DC7 #C72D2D #2DC72D
tetradic
#2D2DC7 #C72D7A #C7C72D #2DC77A
square
#2D2DC7 #C72D7A #C7C72D #2DC77A
split-complementary
#2D2DC7 #C77A2D #7AC72D
monochromatic
#161663 #222295 #2D2DC7 #5858D9 #8A8AE5

Accessibility & contrast

On white

9.08
#2D2DC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2D2DC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2DC7
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2DC7#FFFFFF#000000##FFFFFF
##2D2DC71.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050CB
Deuteranopia (green-blind)
#0041C4
Tritanopia (blue-blind)
#005C79
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d2dc7;
/* rgb */ color: rgb(45, 45, 199);
/* oklch */ color: oklch(42.5% 0.227 271.4);
Tailwind
colors: {
  custom: {
    50: '#8169d9',
    500: '#2d2dc7',
    950: '#000000',
  },
}
SCSS
$custom: #2d2dc7;
$custom-light: #8169d9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2dc7",
  "rgb": {
    "r": 45,
    "g": 45,
    "b": 199
  },
  "hsl": {
    "h": 240,
    "s": 63.115,
    "l": 47.843
  },
  "oklch": {
    "l": 0.42537,
    "c": 0.22671,
    "h": 271.4
  },
  "luminance": 0.06558
}

Semantic roles & 50–950 ramp

primary
#2D2DC7
secondary
#CECE81
accent
#E642E6
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #2D2DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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