#2705AB

A color in the Violet family

#2705ab is a color in the Violet family: RGB(39, 5, 171), HSL(252°, 94%, 35%), CMYK(77%, 97%, 0%, 33%). Closest named color: mediumblue. Contrast is 12.38:1 on white and 1.7:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#2705ab
RGBrgb(39 5 171)
RGB (legacy)rgb(39, 5, 171)
RGB %rgb(15% 2% 67%)
HSLhsl(252 94% 35%)
HSV / HSBhsv(252, 97%, 67%)
HWBhwb(252 2% 33%)
CMYKcmyk(77%, 97%, 0%, 33%)
CIELAB (D50)lab(20.16 50.41 -79)
LCHlch(20.16 93.71 302.54)
OKLaboklab(0.3534 0.0135 -0.2207)
OKLCHoklch(0.3534 0.2211 273.5)
Decimal2557355

Properties

Color ToneViolet
Closest named colormediumblue ΔE 6.7
Closest web-safe color#330099
Hue252°
Saturation (HSL / HSV)94% / 97%
Lightness (HSL)35%
Brightness or Value (HSV)67%
Luminance (Rec.601 / Rec.709)13% / 9%
Relative luminance (WCAG)0.0348
Red / Green / Blue39 / 5 / 171

WCAG 2.2 Contrast Ratio

On White (#ffffff)
12.38:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.70: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.8 / 0 · As background with white / black text: Lc -99.6 / 8.1

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: #2705ab;
  --color-brand-oklch: oklch(35.34% 0.2211 273.5);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(39 5 171 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2705ab] text-[#2705ab] border-[#2705ab]">