#15104F

A color in the Violet family

#15104f is a color in the Violet family: RGB(21, 16, 79), HSL(245°, 66%, 19%), CMYK(73%, 80%, 0%, 69%). Closest named color: midnightblue. Contrast is 17.23:1 on white and 1.22:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#15104f
RGBrgb(21 16 79)
RGB (legacy)rgb(21, 16, 79)
RGB %rgb(8% 6% 31%)
HSLhsl(245 66% 19%)
HSV / HSBhsv(245, 80%, 31%)
HWBhwb(245 6% 69%)
CMYKcmyk(73%, 80%, 0%, 69%)
CIELAB (D50)lab(9.09 20.56 -38.53)
LCHlch(9.09 43.67 298.08)
OKLaboklab(0.2327 0.0137 -0.1086)
OKLCHoklch(0.2327 0.1095 277.17)
Decimal1380431

Properties

Color ToneViolet
Closest named colormidnightblue ΔE 6.6
Closest web-safe color#000066
Hue245°
Saturation (HSL / HSV)66% / 80%
Lightness (HSL)19%
Brightness or Value (HSV)31%
Luminance (Rec.601 / Rec.709)10% / 8%
Relative luminance (WCAG)0.0109
Red / Green / Blue21 / 16 / 79

WCAG 2.2 Contrast Ratio

On White (#ffffff)
17.23:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.22: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 103.7 / 0 · As background with white / black text: Lc -106.1 / 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: #15104f;
  --color-brand-oklch: oklch(23.27% 0.1095 277.17);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(21 16 79 / 50%); }
/* Tailwind CSS */
<div class="bg-[#15104f] text-[#15104f] border-[#15104f]">