#310552

A color in the Purple, Crimson, Magenta family

#310552 is a color in the Purple, Crimson, Magenta family: RGB(49, 5, 82), HSL(274°, 89%, 17%), CMYK(40%, 94%, 0%, 68%). Closest named color: midnightblue. Contrast is 16.48:1 on white and 1.27:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#310552
RGBrgb(49 5 82)
RGB (legacy)rgb(49, 5, 82)
RGB %rgb(19% 2% 32%)
HSLhsl(274 89% 17%)
HSV / HSBhsv(274, 94%, 32%)
HWBhwb(274 2% 68%)
CMYKcmyk(40%, 94%, 0%, 68%)
CIELAB (D50)lab(11.3 32.35 -36.79)
LCHlch(11.3 48.99 311.33)
OKLaboklab(0.2559 0.0697 -0.1035)
OKLCHoklch(0.2559 0.1248 303.98)
Decimal3212626

Properties

Color TonePurple, Crimson, Magenta
Closest named colormidnightblue ΔE 8.1
Closest web-safe color#330066
Hue274°
Saturation (HSL / HSV)89% / 94%
Lightness (HSL)17%
Brightness or Value (HSV)32%
Luminance (Rec.601 / Rec.709)11% / 8%
Relative luminance (WCAG)0.0137
Red / Green / Blue49 / 5 / 82

WCAG 2.2 Contrast Ratio

On White (#ffffff)
16.48:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.27:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 102.6 / 0 · As background with white / black text: Lc -105.2 / 0

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #310552;
  --color-brand-oklch: oklch(25.59% 0.1248 303.98);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(49 5 82 / 50%); }
/* Tailwind CSS */
<div class="bg-[#310552] text-[#310552] border-[#310552]">