#160271

A color in the Violet family

#160271 is a color in the Violet family: RGB(22, 2, 113), HSL(251°, 97%, 23%), CMYK(81%, 98%, 0%, 56%). Closest named color: midnightblue. Contrast is 16.39:1 on white and 1.28:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#160271
RGBrgb(22 2 113)
RGB (legacy)rgb(22, 2, 113)
RGB %rgb(9% 1% 44%)
HSLhsl(251 97% 23%)
HSV / HSBhsv(251, 98%, 44%)
HWBhwb(251 1% 56%)
CMYKcmyk(81%, 98%, 0%, 56%)
CIELAB (D50)lab(10.73 37.3 -58.54)
LCHlch(10.73 69.41 302.51)
OKLaboklab(0.2613 0.0094 -0.1635)
OKLCHoklch(0.2613 0.1638 273.3)
Decimal1442417

Properties

Color ToneViolet
Closest named colormidnightblue ΔE 3.4
Closest web-safe color#000066
Hue251°
Saturation (HSL / HSV)97% / 98%
Lightness (HSL)23%
Brightness or Value (HSV)44%
Luminance (Rec.601 / Rec.709)8% / 6%
Relative luminance (WCAG)0.0141
Red / Green / Blue22 / 2 / 113

WCAG 2.2 Contrast Ratio

On White (#ffffff)
16.39:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.28: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: #160271;
  --color-brand-oklch: oklch(26.13% 0.1638 273.3);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(22 2 113 / 50%); }
/* Tailwind CSS */
<div class="bg-[#160271] text-[#160271] border-[#160271]">