#1F1663

A color in the Violet family

#1f1663 is a color in the Violet family: RGB(31, 22, 99), HSL(247°, 64%, 24%), CMYK(69%, 78%, 0%, 61%). Closest named color: midnightblue. Contrast is 15.52:1 on white and 1.35:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#1f1663
RGBrgb(31 22 99)
RGB (legacy)rgb(31, 22, 99)
RGB %rgb(12% 9% 39%)
HSLhsl(247 64% 24%)
HSV / HSBhsv(247, 78%, 39%)
HWBhwb(247 9% 61%)
CMYKcmyk(69%, 78%, 0%, 61%)
CIELAB (D50)lab(13.45 24.73 -44.81)
LCHlch(13.45 51.18 298.9)
OKLaboklab(0.2732 0.02 -0.1263)
OKLCHoklch(0.2732 0.1279 278.99)
Decimal2037347

Properties

Color ToneViolet
Closest named colormidnightblue ΔE 2.6
Closest web-safe color#330066
Hue247°
Saturation (HSL / HSV)64% / 78%
Lightness (HSL)24%
Brightness or Value (HSV)39%
Luminance (Rec.601 / Rec.709)13% / 12%
Relative luminance (WCAG)0.0177
Red / Green / Blue31 / 22 / 99

WCAG 2.2 Contrast Ratio

On White (#ffffff)
15.52:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.35: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 101.9 / 0 · As background with white / black text: Lc -104.7 / 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: #1f1663;
  --color-brand-oklch: oklch(27.32% 0.1279 278.99);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(31 22 99 / 50%); }
/* Tailwind CSS */
<div class="bg-[#1f1663] text-[#1f1663] border-[#1f1663]">