#0C1962

A color in the Blue, Sky, Navy family

#0c1962 is a color in the Blue, Sky, Navy family: RGB(12, 25, 98), HSL(231°, 78%, 22%), CMYK(88%, 74%, 0%, 62%). Closest named color: midnightblue. Contrast is 15.78:1 on white and 1.33:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#0c1962
RGBrgb(12 25 98)
RGB (legacy)rgb(12, 25, 98)
RGB %rgb(5% 10% 38%)
HSLhsl(231 78% 22%)
HSV / HSBhsv(231, 88%, 38%)
HWBhwb(231 5% 62%)
CMYKcmyk(88%, 74%, 0%, 62%)
CIELAB (D50)lab(12.73 19.72 -45.39)
LCHlch(12.73 49.49 293.49)
OKLaboklab(0.265 -0.0054 -0.1281)
OKLCHoklch(0.265 0.1282 267.58)
Decimal792930

Properties

Color ToneBlue, Sky, Navy
Closest named colormidnightblue ΔE 3
Closest web-safe color#000066
Hue231°
Saturation (HSL / HSV)78% / 88%
Lightness (HSL)22%
Brightness or Value (HSV)38%
Luminance (Rec.601 / Rec.709)12% / 11%
Relative luminance (WCAG)0.0166
Red / Green / Blue12 / 25 / 98

WCAG 2.2 Contrast Ratio

On White (#ffffff)
15.78:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.33: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.1 / 0 · As background with white / black text: Lc -104.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: #0c1962;
  --color-brand-oklch: oklch(26.5% 0.1282 267.58);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(12 25 98 / 50%); }
/* Tailwind CSS */
<div class="bg-[#0c1962] text-[#0c1962] border-[#0c1962]">