#2D2178#2D2178

#2D2178 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.140 H 281.4°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#2D2178
RGBrgb(45, 33, 120)
HSLhsl(248, 57%, 30%)
HSVhsv(248, 73%, 47%)
CMYKcmyk(62.5%, 72.5%, 0%, 52.9%)
CIE-LABlab(20.05, 32.15, -47.78)
CIE-LCHlch(20.05, 57.59, 303.94°)
OKLaboklab(32.46% 0.0279 -0.1377)
OKLCHoklch(32.46% 0.14 281.4)
XYZxyz(5.0151, 3.0013, 18.0807)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2178 #6C7821
analogous
#214078 #2D2178 #592178
triadic
#2D2178 #782D21 #21782D
tetradic
#2D2178 #782140 #6C7821 #217859
square
#2D2178 #782140 #6C7821 #217859
split-complementary
#2D2178 #785921 #407821
monochromatic
#090718 #1B1448 #2D2178 #3F2EA8 #5947CC

Accessibility & contrast

On white

13.12
#2D2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2D2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2178
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2178#FFFFFF#000000##FFFFFF
##2D21781.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d2178;
/* rgb */ color: rgb(45, 33, 120);
/* oklch */ color: oklch(32.5% 0.140 281.4);
Tailwind
colors: {
  custom: {
    50: '#705da0',
    500: '#2d2178',
    950: '#000000',
  },
}
SCSS
$custom: #2d2178;
$custom-light: #705da0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2178",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 248.276,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.3246,
    "c": 0.14045,
    "h": 281.4
  },
  "luminance": 0.03002
}

Semantic roles & 50–950 ramp

primary
#2D2178
secondary
#9EAB4A
accent
#E048CB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2D2178

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

Preview Lab → · Contrast checker → · Palette generator →

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