#2D2470#2D2470

#2D2470 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.126 H 282.1°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#2D2470
RGBrgb(45, 36, 112)
HSLhsl(247, 51%, 29%)
HSVhsv(247, 68%, 44%)
CMYKcmyk(59.8%, 67.9%, 0%, 56.1%)
CIE-LABlab(20.00, 27.52, -42.71)
CIE-LCHlch(20.00, 50.81, 302.79°)
OKLaboklab(32.2% 0.0263 -0.1228)
OKLCHoklch(32.2% 0.126 282.1)
XYZxyz(4.6368, 2.9892, 15.6587)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2470 #677024
analogous
#244170 #2D2470 #532470
triadic
#2D2470 #702D24 #24702D
tetradic
#2D2470 #702441 #677024 #247053
square
#2D2470 #702441 #677024 #247053
split-complementary
#2D2470 #705324 #417024
monochromatic
#090717 #1A1542 #2D2470 #40339E #584AC5

Accessibility & contrast

On white

13.14
#2D2470 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2D2470 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2470
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2470#FFFFFF#000000##FFFFFF
##2D24701.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#002E6E
Tritanopia (blue-blind)
#093746
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d2470;
/* rgb */ color: rgb(45, 36, 112);
/* oklch */ color: oklch(32.2% 0.126 282.1);
Tailwind
colors: {
  custom: {
    50: '#6e5f9a',
    500: '#2d2470',
    950: '#000000',
  },
}
SCSS
$custom: #2d2470;
$custom-light: #6e5f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2470",
  "rgb": {
    "r": 45,
    "g": 36,
    "b": 112
  },
  "hsl": {
    "h": 247.105,
    "s": 51.351,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32195,
    "c": 0.1256,
    "h": 282.1
  },
  "luminance": 0.02989
}

Semantic roles & 50–950 ramp

primary
#2D2470
secondary
#99A34D
accent
#DB4DCA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2D2470

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

Preview Lab → · Contrast checker → · Palette generator →

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