#30287C

A color in the Violet family

#30287c is a color in the Violet family: RGB(48, 40, 124), HSL(246°, 51%, 32%), CMYK(61%, 68%, 0%, 51%). Closest named color: midnightblue. Contrast is 12.21:1 on white and 1.72:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#30287c
RGBrgb(48 40 124)
RGB (legacy)rgb(48, 40, 124)
RGB %rgb(19% 16% 49%)
HSLhsl(246 51% 32%)
HSV / HSBhsv(246, 68%, 49%)
HWBhwb(246 16% 51%)
CMYKcmyk(61%, 68%, 0%, 51%)
CIELAB (D50)lab(21.58 24.33 -47.59)
LCHlch(21.58 53.45 297.08)
OKLaboklab(0.3427 0.0253 -0.1342)
OKLCHoklch(0.3427 0.1365 280.68)
Decimal3156092

Properties

Color ToneViolet
Closest named colormidnightblue ΔE 5.8
Closest web-safe color#333366
Hue246°
Saturation (HSL / HSV)51% / 68%
Lightness (HSL)32%
Brightness or Value (HSV)49%
Luminance (Rec.601 / Rec.709)20% / 19%
Relative luminance (WCAG)0.036
Red / Green / Blue48 / 40 / 124

WCAG 2.2 Contrast Ratio

On White (#ffffff)
12.21:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.72: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 97.4 / 0 · As background with white / black text: Lc -100.9 / 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: #30287c;
  --color-brand-oklch: oklch(34.27% 0.1365 280.68);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(48 40 124 / 50%); }
/* Tailwind CSS */
<div class="bg-[#30287c] text-[#30287c] border-[#30287c]">