#2F2EA2

A color in the Violet family

#2f2ea2 is a color in the Violet family: RGB(47, 46, 162), HSL(241°, 56%, 41%), CMYK(71%, 72%, 0%, 36%). Closest named color: darkslateblue. Contrast is 10.33:1 on white and 2.03:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#2f2ea2
RGBrgb(47 46 162)
RGB (legacy)rgb(47, 46, 162)
RGB %rgb(18% 18% 64%)
HSLhsl(241 56% 41%)
HSV / HSBhsv(241, 72%, 64%)
HWBhwb(241 18% 36%)
CMYKcmyk(71%, 72%, 0%, 36%)
CIELAB (D50)lab(26.1 31.59 -63.69)
LCHlch(26.1 71.09 296.38)
OKLaboklab(0.3888 0.014 -0.1796)
OKLCHoklch(0.3888 0.1802 274.45)
Decimal3092130

Properties

Color ToneViolet
Closest named colordarkslateblue ΔE 6.8
Closest web-safe color#333399
Hue241°
Saturation (HSL / HSV)56% / 72%
Lightness (HSL)41%
Brightness or Value (HSV)64%
Luminance (Rec.601 / Rec.709)23% / 21%
Relative luminance (WCAG)0.0517
Red / Green / Blue47 / 46 / 162

WCAG 2.2 Contrast Ratio

On White (#ffffff)
10.33:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.03: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 93.2 / -9.3 · As background with white / black text: Lc -97.3 / 10.8

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: #2f2ea2;
  --color-brand-oklch: oklch(38.88% 0.1802 274.45);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(47 46 162 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2f2ea2] text-[#2f2ea2] border-[#2f2ea2]">