#2E00A8

A color in the Violet family

#2e00a8 is a color in the Violet family: RGB(46, 0, 168), HSL(256°, 100%, 33%), CMYK(73%, 100%, 0%, 34%). Closest named color: mediumblue. Contrast is 12.49:1 on white and 1.68:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#2e00a8
RGBrgb(46 0 168)
RGB (legacy)rgb(46, 0, 168)
RGB %rgb(18% 0% 66%)
HSLhsl(256 100% 33%)
HSV / HSBhsv(256, 100%, 66%)
HWBhwb(256 0% 34%)
CMYKcmyk(73%, 100%, 0%, 34%)
CIELAB (D50)lab(19.97 51.47 -77.48)
LCHlch(19.97 93.02 303.59)
OKLaboklab(0.3519 0.0259 -0.2165)
OKLCHoklch(0.3519 0.218 276.83)
Decimal3014824

Properties

Color ToneViolet
Closest named colormediumblue ΔE 7.8
Closest web-safe color#330099
Hue256°
Saturation (HSL / HSV)100% / 100%
Lightness (HSL)33%
Brightness or Value (HSV)66%
Luminance (Rec.601 / Rec.709)13% / 9%
Relative luminance (WCAG)0.0341
Red / Green / Blue46 / 0 / 168

WCAG 2.2 Contrast Ratio

On White (#ffffff)
12.49:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.68: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 95.9 / 0 · As background with white / black text: Lc -99.6 / 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: #2e00a8;
  --color-brand-oklch: oklch(35.19% 0.218 276.83);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(46 0 168 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2e00a8] text-[#2e00a8] border-[#2e00a8]">