#2A00A8

A color in the Violet family

#2a00a8 is a color in the Violet family: RGB(42, 0, 168), HSL(255°, 100%, 33%), CMYK(75%, 100%, 0%, 34%). Closest named color: mediumblue. Contrast is 12.62:1 on white and 1.66:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#2a00a8
RGBrgb(42 0 168)
RGB (legacy)rgb(42, 0, 168)
RGB %rgb(16% 0% 66%)
HSLhsl(255 100% 33%)
HSV / HSBhsv(255, 100%, 66%)
HWBhwb(255 0% 34%)
CMYKcmyk(75%, 100%, 0%, 34%)
CIELAB (D50)lab(19.59 51.23 -78.12)
LCHlch(19.59 93.43 303.26)
OKLaboklab(0.3489 0.0197 -0.2181)
OKLCHoklch(0.3489 0.219 275.15)
Decimal2752680

Properties

Color ToneViolet
Closest named colormediumblue ΔE 7.4
Closest web-safe color#330099
Hue255°
Saturation (HSL / HSV)100% / 100%
Lightness (HSL)33%
Brightness or Value (HSV)66%
Luminance (Rec.601 / Rec.709)12% / 8%
Relative luminance (WCAG)0.0332
Red / Green / Blue42 / 0 / 168

WCAG 2.2 Contrast Ratio

On White (#ffffff)
12.62:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.66: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 96.1 / 0 · As background with white / black text: Lc -99.8 / 7.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: #2a00a8;
  --color-brand-oklch: oklch(34.89% 0.219 275.15);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(42 0 168 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2a00a8] text-[#2a00a8] border-[#2a00a8]">