#2D2472#2D2472

#2D2472 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.128 H 281.7°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#2D2472
RGBrgb(45, 36, 114)
HSLhsl(247, 52%, 29%)
HSVhsv(247, 68%, 45%)
CMYKcmyk(60.5%, 68.4%, 0%, 55.3%)
CIE-LABlab(20.18, 28.21, -43.71)
CIE-LCHlch(20.18, 52.03, 302.84°)
OKLaboklab(32.38% 0.0261 -0.1257)
OKLCHoklch(32.38% 0.128 281.7)
XYZxyz(4.7494, 3.0342, 16.2517)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2472 #697224
analogous
#244272 #2D2472 #542472
triadic
#2D2472 #722D24 #24722D
tetradic
#2D2472 #722442 #697224 #247254
square
#2D2472 #722442 #697224 #247254
split-complementary
#2D2472 #725424 #427224
monochromatic
#090717 #1B1543 #2D2472 #3F33A1 #594AC6

Accessibility & contrast

On white

13.07
#2D2472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2D2472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2472
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2472#FFFFFF#000000##FFFFFF
##2D24721.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#053847
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d2472;
/* rgb */ color: rgb(45, 36, 114);
/* oklch */ color: oklch(32.4% 0.128 281.7);
Tailwind
colors: {
  custom: {
    50: '#6e5f9b',
    500: '#2d2472',
    950: '#000000',
  },
}
SCSS
$custom: #2d2472;
$custom-light: #6e5f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2472",
  "rgb": {
    "r": 45,
    "g": 36,
    "b": 114
  },
  "hsl": {
    "h": 246.923,
    "s": 52,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32381,
    "c": 0.12841,
    "h": 281.7
  },
  "luminance": 0.03035
}

Semantic roles & 50–950 ramp

primary
#2D2472
secondary
#9BA54D
accent
#DB4CCB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D2472

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

Preview Lab → · Contrast checker → · Palette generator →

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