#2D32A5#2D32A5

#2D32A5 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.7% C 0.180 H 272.8°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#2D32A5
RGBrgb(45, 50, 165)
HSLhsl(238, 57%, 41%)
HSVhsv(238, 73%, 65%)
CMYKcmyk(72.7%, 69.7%, 0%, 35.3%)
CIE-LABlab(28.26, 37.22, -62.23)
CIE-LCHlch(28.26, 72.51, 300.89°)
OKLaboklab(39.7% 0.0088 -0.1799)
OKLCHoklch(39.7% 0.18 272.8)
XYZxyz(9.0120, 5.5548, 36.1873)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D32A5 #A5A02D
analogous
#2D6EA5 #2D32A5 #642DA5
triadic
#2D32A5 #A52D32 #32A52D
tetradic
#2D32A5 #A52D6E #A5A02D #2DA564
square
#2D32A5 #A52D6E #A5A02D #2DA564
split-complementary
#2D32A5 #A5642D #6EA52D
monochromatic
#131545 #202375 #2D32A5 #4349CC #7378D9

Accessibility & contrast

On white

9.95
#2D32A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2D32A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D32A5
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D32A5#FFFFFF#000000##FFFFFF
##2D32A51.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#003DA3
Tritanopia (blue-blind)
#005167
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d32a5;
/* rgb */ color: rgb(45, 50, 165);
/* oklch */ color: oklch(39.7% 0.180 272.8);
Tailwind
colors: {
  custom: {
    50: '#786ac1',
    500: '#2d32a5',
    950: '#000000',
  },
}
SCSS
$custom: #2d32a5;
$custom-light: #786ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d32a5",
  "rgb": {
    "r": 45,
    "g": 50,
    "b": 165
  },
  "hsl": {
    "h": 237.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39696,
    "c": 0.18015,
    "h": 272.8
  },
  "luminance": 0.05556
}

Semantic roles & 50–950 ramp

primary
#2D32A5
secondary
#C1BD6D
accent
#DA47E0
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D32A5

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

Preview Lab → · Contrast checker → · Palette generator →

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