#2D2872#2D2872

#2D2872 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.123 H 280.3°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#2D2872
RGBrgb(45, 40, 114)
HSLhsl(244, 48%, 30%)
HSVhsv(244, 65%, 45%)
CMYKcmyk(60.5%, 64.9%, 0%, 55.3%)
CIE-LABlab(21.17, 25.59, -42.10)
CIE-LCHlch(21.17, 49.26, 301.29°)
OKLaboklab(33.1% 0.022 -0.121)
OKLCHoklch(33.1% 0.123 280.3)
XYZxyz(4.8773, 3.2900, 16.2944)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2872 #6D7228
analogous
#284872 #2D2872 #522872
triadic
#2D2872 #722D28 #28722D
tetradic
#2D2872 #722848 #6D7228 #287252
square
#2D2872 #722848 #6D7228 #287252
split-complementary
#2D2872 #725228 #487228
monochromatic
#090817 #1B1845 #2D2872 #3F389F #5A52C2

Accessibility & contrast

On white

12.67
#2D2872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2D2872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2872
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2872#FFFFFF#000000##FFFFFF
##2D28721.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d2872;
/* rgb */ color: rgb(45, 40, 114);
/* oklch */ color: oklch(33.1% 0.123 280.3);
Tailwind
colors: {
  custom: {
    50: '#6e629b',
    500: '#2d2872',
    950: '#000000',
  },
}
SCSS
$custom: #2d2872;
$custom-light: #6e629b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2872",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 244.054,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33102,
    "c": 0.12298,
    "h": 280.3
  },
  "luminance": 0.0329
}

Semantic roles & 50–950 ramp

primary
#2D2872
secondary
#9FA452
accent
#D850CE
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2D2872

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

Preview Lab → · Contrast checker → · Palette generator →

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