#331663

A color in the Violet family

#331663 is a color in the Violet family: RGB(51, 22, 99), HSL(263°, 64%, 24%), CMYK(48%, 78%, 0%, 61%). Closest named color: midnightblue. Contrast is 14.63:1 on white and 1.44:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#331663
RGBrgb(51 22 99)
RGB (legacy)rgb(51, 22, 99)
RGB %rgb(20% 9% 39%)
HSLhsl(263 64% 24%)
HSV / HSBhsv(263, 78%, 39%)
HWBhwb(263 9% 61%)
CMYKcmyk(48%, 78%, 0%, 61%)
CIELAB (D50)lab(15.84 28.9 -40.78)
LCHlch(15.84 49.98 305.32)
OKLaboklab(0.294 0.0523 -0.1148)
OKLCHoklch(0.294 0.1262 294.49)
Decimal3348067

Properties

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

WCAG 2.2 Contrast Ratio

On White (#ffffff)
14.63:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.44: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 100.9 / 0 · As background with white / black text: Lc -103.9 / 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: #331663;
  --color-brand-oklch: oklch(29.4% 0.1262 294.49);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(51 22 99 / 50%); }
/* Tailwind CSS */
<div class="bg-[#331663] text-[#331663] border-[#331663]">