#0C1951

A color in the Blue, Sky, Navy family

#0c1951 is a color in the Blue, Sky, Navy family: RGB(12, 25, 81), HSL(229°, 74%, 18%), CMYK(85%, 69%, 0%, 68%). Closest named color: midnightblue. Contrast is 16.49:1 on white and 1.27:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#0c1951
RGBrgb(12 25 81)
RGB (legacy)rgb(12, 25, 81)
RGB %rgb(5% 10% 32%)
HSLhsl(229 74% 18%)
HSV / HSBhsv(229, 85%, 32%)
HWBhwb(229 5% 68%)
CMYKcmyk(85%, 69%, 0%, 68%)
CIELAB (D50)lab(11.12 13.55 -36.61)
LCHlch(11.12 39.04 290.31)
OKLaboklab(0.2461 -0.0043 -0.1034)
OKLCHoklch(0.2461 0.1035 267.64)
Decimal792913

Properties

Color ToneBlue, Sky, Navy
Closest named colormidnightblue ΔE 5.9
Closest web-safe color#000066
Hue229°
Saturation (HSL / HSV)74% / 85%
Lightness (HSL)18%
Brightness or Value (HSV)32%
Luminance (Rec.601 / Rec.709)11% / 10%
Relative luminance (WCAG)0.0137
Red / Green / Blue12 / 25 / 81

WCAG 2.2 Contrast Ratio

On White (#ffffff)
16.49:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.27: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 103.1 / 0 · As background with white / black text: Lc -105.6 / 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: #0c1951;
  --color-brand-oklch: oklch(24.61% 0.1035 267.64);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(12 25 81 / 50%); }
/* Tailwind CSS */
<div class="bg-[#0c1951] text-[#0c1951] border-[#0c1951]">