#25287C

A color in the Blue, Sky, Navy family

#25287c is a color in the Blue, Sky, Navy family: RGB(37, 40, 124), HSL(238°, 54%, 32%), CMYK(70%, 68%, 0%, 51%). Closest named color: midnightblue. Contrast is 12.55:1 on white and 1.67:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#25287c
RGBrgb(37 40 124)
RGB (legacy)rgb(37, 40, 124)
RGB %rgb(15% 16% 49%)
HSLhsl(238 54% 32%)
HSV / HSBhsv(238, 70%, 49%)
HWBhwb(238 15% 51%)
CMYKcmyk(70%, 68%, 0%, 51%)
CIELAB (D50)lab(20.65 22.13 -49.15)
LCHlch(20.65 53.9 294.24)
OKLaboklab(0.3343 0.0106 -0.1387)
OKLCHoklch(0.3343 0.1391 274.37)
Decimal2435196

Properties

Color ToneBlue, Sky, Navy
Closest named colormidnightblue ΔE 4.7
Closest web-safe color#333366
Hue238°
Saturation (HSL / HSV)54% / 70%
Lightness (HSL)32%
Brightness or Value (HSV)49%
Luminance (Rec.601 / Rec.709)19% / 18%
Relative luminance (WCAG)0.0337
Red / Green / Blue37 / 40 / 124

WCAG 2.2 Contrast Ratio

On White (#ffffff)
12.55:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.67: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.9 / 0 · As background with white / black text: Lc -101.4 / 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: #25287c;
  --color-brand-oklch: oklch(33.43% 0.1391 274.37);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(37 40 124 / 50%); }
/* Tailwind CSS */
<div class="bg-[#25287c] text-[#25287c] border-[#25287c]">