#2D2179#2D2179

#2D2179 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.142 H 281.3°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#2D2179
RGBrgb(45, 33, 121)
HSLhsl(248, 57%, 30%)
HSVhsv(248, 73%, 47%)
CMYKcmyk(62.8%, 72.7%, 0%, 52.5%)
CIE-LABlab(20.15, 32.49, -48.26)
CIE-LCHlch(20.15, 58.17, 303.95°)
OKLaboklab(32.56% 0.0277 -0.1391)
OKLCHoklch(32.56% 0.142 281.3)
XYZxyz(5.0762, 3.0257, 18.4020)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2179 #6D7921
analogous
#214179 #2D2179 #592179
triadic
#2D2179 #792D21 #21792D
tetradic
#2D2179 #792141 #6D7921 #217959
square
#2D2179 #792141 #6D7921 #217959
split-complementary
#2D2179 #795921 #417921
monochromatic
#090719 #1B1449 #2D2179 #3F2EA9 #5A47CD

Accessibility & contrast

On white

13.08
#2D2179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2D2179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2179
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2179#FFFFFF#000000##FFFFFF
##2D21791.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d2179;
/* rgb */ color: rgb(45, 33, 121);
/* oklch */ color: oklch(32.6% 0.142 281.3);
Tailwind
colors: {
  custom: {
    50: '#705da1',
    500: '#2d2179',
    950: '#000000',
  },
}
SCSS
$custom: #2d2179;
$custom-light: #705da1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2179",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 121
  },
  "hsl": {
    "h": 248.182,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3256,
    "c": 0.1418,
    "h": 281.3
  },
  "luminance": 0.03026
}

Semantic roles & 50–950 ramp

primary
#2D2179
secondary
#9FAC4A
accent
#E047CC
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D2179

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

Preview Lab → · Contrast checker → · Palette generator →

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