#2D2873#2D2873

#2D2873 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.124 H 280.2°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#2D2873
RGBrgb(45, 40, 115)
HSLhsl(244, 48%, 30%)
HSVhsv(244, 65%, 45%)
CMYKcmyk(60.9%, 65.2%, 0%, 54.9%)
CIE-LABlab(21.26, 25.94, -42.60)
CIE-LCHlch(21.26, 49.88, 301.34°)
OKLaboklab(33.19% 0.022 -0.1225)
OKLCHoklch(33.19% 0.124 280.2)
XYZxyz(4.9345, 3.3129, 16.5958)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2873 #6E7328
analogous
#284873 #2D2873 #522873
triadic
#2D2873 #732D28 #28732D
tetradic
#2D2873 #732848 #6E7328 #287352
square
#2D2873 #732848 #6E7328 #287352
split-complementary
#2D2873 #735228 #487328
monochromatic
#090818 #1B1846 #2D2873 #3F38A0 #5A52C3

Accessibility & contrast

On white

12.63
#2D2873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2873
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2873#FFFFFF#000000##FFFFFF
##2D28731.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003675
Deuteranopia (green-blind)
#003072
Tritanopia (blue-blind)
#023A49
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d2873;
/* rgb */ color: rgb(45, 40, 115);
/* oklch */ color: oklch(33.2% 0.124 280.2);
Tailwind
colors: {
  custom: {
    50: '#6e629c',
    500: '#2d2873',
    950: '#000000',
  },
}
SCSS
$custom: #2d2873;
$custom-light: #6e629c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2873",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 244,
    "s": 48.387,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33192,
    "c": 0.12443,
    "h": 280.2
  },
  "luminance": 0.03313
}

Semantic roles & 50–950 ramp

primary
#2D2873
secondary
#A0A552
accent
#D850CF
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2D2873

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

Preview Lab → · Contrast checker → · Palette generator →

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