#0C1548#0C1548

#0C1548 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.8% C 0.095 H 269.3°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#0C1548
RGBrgb(12, 21, 72)
HSLhsl(231, 71%, 16%)
HSVhsv(231, 83%, 28%)
CMYKcmyk(83.3%, 70.8%, 0%, 71.8%)
CIE-LABlab(9.66, 17.26, -32.93)
CIE-LCHlch(9.66, 37.18, 297.65°)
OKLaboklab(22.8% -0.0011 -0.0952)
OKLCHoklch(22.8% 0.095 269.3)
XYZxyz(1.5891, 1.0822, 6.2548)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1548 #483F0C
analogous
#0C3348 #0C1548 #210C48
triadic
#0C1548 #480C15 #15480C
tetradic
#0C1548 #480C33 #483F0C #0C4821
square
#0C1548 #480C33 #483F0C #0C4821
split-complementary
#0C1548 #48210C #33480C
monochromatic
#04081A #04081A #0C1548 #15247C #1D34B1

Accessibility & contrast

On white

17.26
#0C1548 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#0C1548 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1548
17.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1548#FFFFFF#000000##FFFFFF
##0C15481.0017.261.2217.26
#FFFFFF17.261.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4A
Deuteranopia (green-blind)
#001847
Tritanopia (blue-blind)
#00222C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0c1548;
/* rgb */ color: rgb(12, 21, 72);
/* oklch */ color: oklch(22.8% 0.095 269.3);
Tailwind
colors: {
  custom: {
    50: '#56527c',
    500: '#0c1548',
    950: '#000000',
  },
}
SCSS
$custom: #0c1548;
$custom-light: #56527c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1548",
  "rgb": {
    "r": 12,
    "g": 21,
    "b": 72
  },
  "hsl": {
    "h": 231,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.22799,
    "c": 0.09522,
    "h": 269.3
  },
  "luminance": 0.01082
}

Semantic roles & 50–950 ramp

primary
#0C1548
secondary
#84772C
accent
#D33AEE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030209
muted
#78787B

Preview Lab

Preview with #0C1548

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

Preview Lab → · Contrast checker → · Palette generator →

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