#2F207C

A color in the Violet family

#2f207c is a color in the Violet family: RGB(47, 32, 124), HSL(250°, 59%, 31%), CMYK(62%, 74%, 0%, 51%). Closest named color: midnightblue. Contrast is 12.97:1 on white and 1.62:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#2f207c
RGBrgb(47 32 124)
RGB (legacy)rgb(47, 32, 124)
RGB %rgb(18% 13% 49%)
HSLhsl(250 59% 31%)
HSV / HSBhsv(250, 74%, 49%)
HWBhwb(250 13% 51%)
CMYKcmyk(62%, 74%, 0%, 51%)
CIELAB (D50)lab(19.6 28.94 -50.84)
LCHlch(19.6 58.5 299.65)
OKLaboklab(0.3288 0.0309 -0.1433)
OKLCHoklch(0.3288 0.1466 282.16)
Decimal3088508

Properties

Color ToneViolet
Closest named colormidnightblue ΔE 4.7
Closest web-safe color#333366
Hue250°
Saturation (HSL / HSV)59% / 74%
Lightness (HSL)31%
Brightness or Value (HSV)49%
Luminance (Rec.601 / Rec.709)18% / 16%
Relative luminance (WCAG)0.0309
Red / Green / Blue47 / 32 / 124

WCAG 2.2 Contrast Ratio

On White (#ffffff)
12.97:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.62: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 98.6 / 0 · As background with white / black text: Lc -101.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: #2f207c;
  --color-brand-oklch: oklch(32.88% 0.1466 282.16);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(47 32 124 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2f207c] text-[#2f207c] border-[#2f207c]">