#2D2972#2D2972

#2D2972 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.122 H 279.9°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#2D2972
RGBrgb(45, 41, 114)
HSLhsl(243, 47%, 30%)
HSVhsv(243, 64%, 45%)
CMYKcmyk(60.5%, 64%, 0%, 55.3%)
CIE-LABlab(21.43, 24.92, -41.68)
CIE-LCHlch(21.43, 48.56, 300.87°)
OKLaboklab(33.29% 0.021 -0.1198)
OKLCHoklch(33.29% 0.122 279.9)
XYZxyz(4.9114, 3.3583, 16.3057)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2972 #6E7229
analogous
#294972 #2D2972 #512972
triadic
#2D2972 #722D29 #29722D
tetradic
#2D2972 #722949 #6E7229 #297251
square
#2D2972 #722949 #6E7229 #297251
split-complementary
#2D2972 #725129 #497229
monochromatic
#090918 #1B1945 #2D2972 #3F399F #5A54C1

Accessibility & contrast

On white

12.56
#2D2972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2D2972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2972
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2972#FFFFFF#000000##FFFFFF
##2D29721.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#043B49
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d2972;
/* rgb */ color: rgb(45, 41, 114);
/* oklch */ color: oklch(33.3% 0.122 279.9);
Tailwind
colors: {
  custom: {
    50: '#6e639b',
    500: '#2d2972',
    950: '#000000',
  },
}
SCSS
$custom: #2d2972;
$custom-light: #6e639b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2972",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 114
  },
  "hsl": {
    "h": 243.288,
    "s": 47.097,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33289,
    "c": 0.12159,
    "h": 279.9
  },
  "luminance": 0.03359
}

Semantic roles & 50–950 ramp

primary
#2D2972
secondary
#A0A453
accent
#D751CF
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2D2972

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

Preview Lab → · Contrast checker → · Palette generator →

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