#25035D

A color in the Violet family

#25035d is a color in the Violet family: RGB(37, 3, 93), HSL(263°, 94%, 19%), CMYK(60%, 97%, 0%, 64%). Closest named color: midnightblue. Contrast is 16.8:1 on white and 1.25:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#25035d
RGBrgb(37 3 93)
RGB (legacy)rgb(37, 3, 93)
RGB %rgb(15% 1% 36%)
HSLhsl(263 94% 19%)
HSV / HSBhsv(263, 97%, 36%)
HWBhwb(263 1% 64%)
CMYKcmyk(60%, 97%, 0%, 64%)
CIELAB (D50)lab(10.11 33.6 -46.29)
LCHlch(10.11 57.2 305.97)
OKLaboklab(0.2499 0.0446 -0.13)
OKLCHoklch(0.2499 0.1374 288.92)
Decimal2425693

Properties

Color ToneViolet
Closest named colormidnightblue ΔE 5.5
Closest web-safe color#330066
Hue263°
Saturation (HSL / HSV)94% / 97%
Lightness (HSL)19%
Brightness or Value (HSV)36%
Luminance (Rec.601 / Rec.709)9% / 7%
Relative luminance (WCAG)0.0125
Red / Green / Blue37 / 3 / 93

WCAG 2.2 Contrast Ratio

On White (#ffffff)
16.80:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.25: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 102.7 / 0 · As background with white / black text: Lc -105.3 / 0

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: #25035d;
  --color-brand-oklch: oklch(24.99% 0.1374 288.92);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(37 3 93 / 50%); }
/* Tailwind CSS */
<div class="bg-[#25035d] text-[#25035d] border-[#25035d]">