#2D2072#2D2072

#2D2072 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.134 H 282.9°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#2D2072
RGBrgb(45, 32, 114)
HSLhsl(250, 56%, 29%)
HSVhsv(250, 72%, 45%)
CMYKcmyk(60.5%, 71.9%, 0%, 55.3%)
CIE-LABlab(19.25, 30.74, -45.24)
CIE-LCHlch(19.25, 54.69, 304.20°)
OKLaboklab(31.71% 0.0299 -0.1302)
OKLCHoklch(31.71% 0.134 282.9)
XYZxyz(4.6350, 2.8055, 16.2136)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2072 #657220
analogous
#203C72 #2D2072 #562072
triadic
#2D2072 #722D20 #20722D
tetradic
#2D2072 #72203C #657220 #207256
square
#2D2072 #72203C #657220 #207256
split-complementary
#2D2072 #725620 #3C7220
monochromatic
#090718 #1A1342 #2D2072 #402DA2 #5842CA

Accessibility & contrast

On white

13.45
#2D2072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2D2072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2072
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2072#FFFFFF#000000##FFFFFF
##2D20721.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#063546
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d2072;
/* rgb */ color: rgb(45, 32, 114);
/* oklch */ color: oklch(31.7% 0.134 282.9);
Tailwind
colors: {
  custom: {
    50: '#6f5d9b',
    500: '#2d2072',
    950: '#000000',
  },
}
SCSS
$custom: #2d2072;
$custom-light: #6f5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2072",
  "rgb": {
    "r": 45,
    "g": 32,
    "b": 114
  },
  "hsl": {
    "h": 249.512,
    "s": 56.164,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31709,
    "c": 0.1336,
    "h": 282.9
  },
  "luminance": 0.02806
}

Semantic roles & 50–950 ramp

primary
#2D2072
secondary
#97A648
accent
#DF48C8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D2072

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

Preview Lab → · Contrast checker → · Palette generator →

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