#2A02CA

A color in the Violet family

#2a02ca is a color in the Violet family: RGB(42, 2, 202), HSL(252°, 98%, 40%), CMYK(79%, 99%, 0%, 21%). Closest named color: mediumblue. Contrast is 10.71:1 on white and 1.96:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#2a02ca
RGBrgb(42 2 202)
RGB (legacy)rgb(42, 2, 202)
RGB %rgb(16% 1% 79%)
HSLhsl(252 98% 40%)
HSV / HSBhsv(252, 99%, 79%)
HWBhwb(252 1% 21%)
CMYKcmyk(79%, 99%, 0%, 21%)
CIELAB (D50)lab(24.13 57.84 -90.78)
LCHlch(24.13 107.64 302.5)
OKLaboklab(0.3943 0.0077 -0.2532)
OKLCHoklch(0.3943 0.2534 271.75)
Decimal2753226

Properties

Color ToneViolet
Closest named colormediumblue ΔE 3.9
Closest web-safe color#3300cc
Hue252°
Saturation (HSL / HSV)98% / 99%
Lightness (HSL)40%
Brightness or Value (HSV)79%
Luminance (Rec.601 / Rec.709)14% / 10%
Relative luminance (WCAG)0.048
Red / Green / Blue42 / 2 / 202

WCAG 2.2 Contrast Ratio

On White (#ffffff)
10.71:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.96: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 92.1 / -10.3 · As background with white / black text: Lc -96.3 / 11.9

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: #2a02ca;
  --color-brand-oklch: oklch(39.43% 0.2534 271.75);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(42 2 202 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2a02ca] text-[#2a02ca] border-[#2a02ca]">