#2D2672#2D2672

#2D2672 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.126 H 281.0°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#2D2672
RGBrgb(45, 38, 114)
HSLhsl(246, 50%, 30%)
HSVhsv(246, 67%, 45%)
CMYKcmyk(60.5%, 66.7%, 0%, 55.3%)
CIE-LABlab(20.67, 26.91, -42.91)
CIE-LCHlch(20.67, 50.65, 302.09°)
OKLaboklab(32.74% 0.0241 -0.1234)
OKLCHoklch(32.74% 0.126 281)
XYZxyz(4.8116, 3.1587, 16.2725)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2672 #6B7226
analogous
#264572 #2D2672 #532672
triadic
#2D2672 #722D26 #26722D
tetradic
#2D2672 #722645 #6B7226 #267253
square
#2D2672 #722645 #6B7226 #267253
split-complementary
#2D2672 #725326 #457226
monochromatic
#090817 #1B1744 #2D2672 #3F35A0 #594EC4

Accessibility & contrast

On white

12.87
#2D2672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2D2672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2672
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2672#FFFFFF#000000##FFFFFF
##2D26721.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#053948
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d2672;
/* rgb */ color: rgb(45, 38, 114);
/* oklch */ color: oklch(32.7% 0.126 281.0);
Tailwind
colors: {
  custom: {
    50: '#6e619b',
    500: '#2d2672',
    950: '#000000',
  },
}
SCSS
$custom: #2d2672;
$custom-light: #6e619b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2672",
  "rgb": {
    "r": 45,
    "g": 38,
    "b": 114
  },
  "hsl": {
    "h": 245.526,
    "s": 50,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32736,
    "c": 0.12573,
    "h": 281
  },
  "luminance": 0.03159
}

Semantic roles & 50–950 ramp

primary
#2D2672
secondary
#9DA54F
accent
#DA4ECD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2D2672

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

Preview Lab → · Contrast checker → · Palette generator →

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