#0C1948#0C1948

#0C1948 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.7% C 0.090 H 267.3°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#0C1948
RGBrgb(12, 25, 72)
HSLhsl(227, 71%, 16%)
HSVhsv(227, 83%, 28%)
CMYKcmyk(83.3%, 65.3%, 0%, 71.8%)
CIE-LABlab(10.86, 14.18, -30.97)
CIE-LCHlch(10.86, 34.07, 294.60°)
OKLaboklab(23.69% -0.0043 -0.0894)
OKLCHoklch(23.69% 0.09 267.3)
XYZxyz(1.6685, 1.2411, 6.2813)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1948 #483B0C
analogous
#0C3748 #0C1948 #1D0C48
triadic
#0C1948 #480C19 #19480C
tetradic
#0C1948 #480C37 #483B0C #0C481D
square
#0C1948 #480C37 #483B0C #0C481D
split-complementary
#0C1948 #481D0C #37480C
monochromatic
#04091A #04091A #0C1948 #152B7C #1D3DB1

Accessibility & contrast

On white

16.82
#0C1948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#0C1948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1948
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1948#FFFFFF#000000##FFFFFF
##0C19481.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204A
Deuteranopia (green-blind)
#001A47
Tritanopia (blue-blind)
#00252D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #0c1948;
/* rgb */ color: rgb(12, 25, 72);
/* oklch */ color: oklch(23.7% 0.090 267.3);
Tailwind
colors: {
  custom: {
    50: '#56557b',
    500: '#0c1948',
    950: '#000000',
  },
}
SCSS
$custom: #0c1948;
$custom-light: #56557b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1948",
  "rgb": {
    "r": 12,
    "g": 25,
    "b": 72
  },
  "hsl": {
    "h": 227,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.23688,
    "c": 0.08951,
    "h": 267.3
  },
  "luminance": 0.01241
}

Semantic roles & 50–950 ramp

primary
#0C1948
secondary
#84712C
accent
#C73AEE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1948

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#0C1948 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva