#2D2D7F#2D2D7F

#2D2D7F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.135 H 276.9°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#2D2D7F
RGBrgb(45, 45, 127)
HSLhsl(240, 48%, 34%)
HSVhsv(240, 65%, 50%)
CMYKcmyk(64.6%, 64.6%, 0%, 50.2%)
CIE-LABlab(23.56, 26.90, -46.48)
CIE-LCHlch(23.56, 53.70, 300.06°)
OKLaboklab(35.2% 0.0163 -0.1338)
OKLCHoklch(35.2% 0.135 276.9)
XYZxyz(5.8501, 3.9665, 20.5319)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2D7F #7F7F2D
analogous
#2D567F #2D2D7F #562D7F
triadic
#2D2D7F #7F2D2D #2D7F2D
tetradic
#2D2D7F #7F2D56 #7F7F2D #2D7F56
square
#2D2D7F #7F2D56 #7F7F2D #2D7F56
split-complementary
#2D2D7F #7F562D #567F2D
monochromatic
#0D0D25 #1D1D52 #2D2D7F #3D3DAC #6060C7

Accessibility & contrast

On white

11.71
#2D2D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2D2D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2D7F
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2D7F#FFFFFF#000000##FFFFFF
##2D2D7F1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d2d7f;
/* rgb */ color: rgb(45, 45, 127);
/* oklch */ color: oklch(35.2% 0.135 276.9);
Tailwind
colors: {
  custom: {
    50: '#7066a5',
    500: '#2d2d7f',
    950: '#000000',
  },
}
SCSS
$custom: #2d2d7f;
$custom-light: #7066a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2d7f",
  "rgb": {
    "r": 45,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 240,
    "s": 47.674,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35204,
    "c": 0.13483,
    "h": 276.9
  },
  "luminance": 0.03967
}

Semantic roles & 50–950 ramp

primary
#2D2D7F
secondary
#ADAD5B
accent
#D751D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D2D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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