#1C1937

A color in the Violet family

#1c1937 is a color in the Violet family: RGB(28, 25, 55), HSL(246°, 38%, 16%), CMYK(49%, 55%, 0%, 78%). Closest named color: midnightblue. Contrast is 16.89:1 on white and 1.24:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#1c1937
RGBrgb(28 25 55)
RGB (legacy)rgb(28, 25, 55)
RGB %rgb(11% 10% 22%)
HSLhsl(246 38% 16%)
HSV / HSBhsv(246, 55%, 22%)
HWBhwb(246 10% 78%)
CMYKcmyk(49%, 55%, 0%, 78%)
CIELAB (D50)lab(10.46 8.72 -19.43)
LCHlch(10.46 21.29 294.16)
OKLaboklab(0.2344 0.0153 -0.0542)
OKLCHoklch(0.2344 0.0564 285.75)
Decimal1841463

Properties

Color ToneViolet
Closest named colormidnightblue ΔE 10.4
Closest web-safe color#330033
Hue246°
Saturation (HSL / HSV)38% / 55%
Lightness (HSL)16%
Brightness or Value (HSV)22%
Luminance (Rec.601 / Rec.709)11% / 11%
Relative luminance (WCAG)0.0122
Red / Green / Blue28 / 25 / 55

WCAG 2.2 Contrast Ratio

On White (#ffffff)
16.89:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.24: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: #1c1937;
  --color-brand-oklch: oklch(23.44% 0.0564 285.75);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(28 25 55 / 50%); }
/* Tailwind CSS */
<div class="bg-[#1c1937] text-[#1c1937] border-[#1c1937]">