#0C1C48#0C1C48

#0C1C48 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.4% C 0.085 H 265.4°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#0C1C48
RGBrgb(12, 28, 72)
HSLhsl(224, 71%, 16%)
HSVhsv(224, 83%, 28%)
CMYKcmyk(83.3%, 61.1%, 0%, 71.8%)
CIE-LABlab(11.80, 11.86, -29.44)
CIE-LCHlch(11.80, 31.74, 291.93°)
OKLaboklab(24.4% -0.0069 -0.0848)
OKLCHoklch(24.4% 0.085 265.4)
XYZxyz(1.7362, 1.3764, 6.3038)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1C48 #48380C
analogous
#0C3A48 #0C1C48 #1A0C48
triadic
#0C1C48 #480C1C #1C480C
tetradic
#0C1C48 #480C3A #48380C #0C481A
square
#0C1C48 #480C3A #48380C #0C481A
split-complementary
#0C1C48 #481A0C #3A480C
monochromatic
#040A1A #040A1A #0C1C48 #15307C #1D45B1

Accessibility & contrast

On white

16.47
#0C1C48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#0C1C48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1C48
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1C48#FFFFFF#000000##FFFFFF
##0C1C481.0016.471.2816.47
#FFFFFF16.471.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224A
Deuteranopia (green-blind)
#001C47
Tritanopia (blue-blind)
#00272E
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #0c1c48;
/* rgb */ color: rgb(12, 28, 72);
/* oklch */ color: oklch(24.4% 0.085 265.4);
Tailwind
colors: {
  custom: {
    50: '#55577b',
    500: '#0c1c48',
    950: '#000000',
  },
}
SCSS
$custom: #0c1c48;
$custom-light: #55577b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1c48",
  "rgb": {
    "r": 12,
    "g": 28,
    "b": 72
  },
  "hsl": {
    "h": 224,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24395,
    "c": 0.08513,
    "h": 265.4
  },
  "luminance": 0.01377
}

Semantic roles & 50–950 ramp

primary
#0C1C48
secondary
#846C2C
accent
#BE3AEE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1C48

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

Preview Lab → · Contrast checker → · Palette generator →

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