#0C1748#0C1748

#0C1748 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.2% C 0.092 H 268.4°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#0C1748
RGBrgb(12, 23, 72)
HSLhsl(229, 71%, 16%)
HSVhsv(229, 83%, 28%)
CMYKcmyk(83.3%, 68.1%, 0%, 71.8%)
CIE-LABlab(10.25, 15.73, -31.96)
CIE-LCHlch(10.25, 35.62, 296.20°)
OKLaboklab(23.24% -0.0026 -0.0923)
OKLCHoklch(23.24% 0.092 268.4)
XYZxyz(1.6273, 1.1587, 6.2675)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1748 #483D0C
analogous
#0C3548 #0C1748 #1F0C48
triadic
#0C1748 #480C17 #17480C
tetradic
#0C1748 #480C35 #483D0C #0C481F
square
#0C1748 #480C35 #483D0C #0C481F
split-complementary
#0C1748 #481F0C #35480C
monochromatic
#04081A #04081A #0C1748 #15287C #1D39B1

Accessibility & contrast

On white

17.05
#0C1748 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#0C1748 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1748
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1748#FFFFFF#000000##FFFFFF
##0C17481.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4A
Deuteranopia (green-blind)
#001947
Tritanopia (blue-blind)
#00242C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0c1748;
/* rgb */ color: rgb(12, 23, 72);
/* oklch */ color: oklch(23.2% 0.092 268.4);
Tailwind
colors: {
  custom: {
    50: '#56537b',
    500: '#0c1748',
    950: '#000000',
  },
}
SCSS
$custom: #0c1748;
$custom-light: #56537b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1748",
  "rgb": {
    "r": 12,
    "g": 23,
    "b": 72
  },
  "hsl": {
    "h": 229,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.23235,
    "c": 0.09239,
    "h": 268.4
  },
  "luminance": 0.01159
}

Semantic roles & 50–950 ramp

primary
#0C1748
secondary
#84742C
accent
#CD3AEE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030209
muted
#78787B

Preview Lab

Preview with #0C1748

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

Preview Lab → · Contrast checker → · Palette generator →

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