#2D2D71#2D2D71

#2D2D71 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 34.0% C 0.114 H 278.4°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#2D2D71
RGBrgb(45, 45, 113)
HSLhsl(240, 43%, 31%)
HSVhsv(240, 60%, 44%)
CMYKcmyk(60.2%, 60.2%, 0%, 55.7%)
CIE-LABlab(22.40, 21.85, -39.46)
CIE-LCHlch(22.40, 45.11, 298.97°)
OKLaboklab(33.98% 0.0167 -0.1132)
OKLCHoklch(33.98% 0.114 278.4)
XYZxyz(5.0003, 3.6266, 16.0561)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2D71 #71712D
analogous
#2D4F71 #2D2D71 #4F2D71
triadic
#2D2D71 #712D2D #2D712D
tetradic
#2D2D71 #712D4F #71712D #2D714F
square
#2D2D71 #712D4F #71712D #2D714F
split-complementary
#2D2D71 #714F2D #4F712D
monochromatic
#0A0A19 #1C1C45 #2D2D71 #3E3E9D #5B5BBE

Accessibility & contrast

On white

12.17
#2D2D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2D2D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2D71
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2D71#FFFFFF#000000##FFFFFF
##2D2D711.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#053D4A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d2d71;
/* rgb */ color: rgb(45, 45, 113);
/* oklch */ color: oklch(34.0% 0.114 278.4);
Tailwind
colors: {
  custom: {
    50: '#6d669a',
    500: '#2d2d71',
    950: '#000000',
  },
}
SCSS
$custom: #2d2d71;
$custom-light: #6d669a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2d71",
  "rgb": {
    "r": 45,
    "g": 45,
    "b": 113
  },
  "hsl": {
    "h": 240,
    "s": 43.038,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3398,
    "c": 0.11444,
    "h": 278.4
  },
  "luminance": 0.03627
}

Semantic roles & 50–950 ramp

primary
#2D2D71
secondary
#A3A357
accent
#D355D3
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #2D2D71

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

Preview Lab → · Contrast checker → · Palette generator →

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