#0C1848#0C1848

#0C1848 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.5% C 0.091 H 267.8°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#0C1848
RGBrgb(12, 24, 72)
HSLhsl(228, 71%, 16%)
HSVhsv(228, 83%, 28%)
CMYKcmyk(83.3%, 66.7%, 0%, 71.8%)
CIE-LABlab(10.55, 14.96, -31.47)
CIE-LCHlch(10.55, 34.85, 295.42°)
OKLaboklab(23.46% -0.0034 -0.0909)
OKLCHoklch(23.46% 0.091 267.8)
XYZxyz(1.6475, 1.1991, 6.2743)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1848 #483C0C
analogous
#0C3648 #0C1848 #1E0C48
triadic
#0C1848 #480C18 #18480C
tetradic
#0C1848 #480C36 #483C0C #0C481E
square
#0C1848 #480C36 #483C0C #0C481E
split-complementary
#0C1848 #481E0C #36480C
monochromatic
#04091A #04091A #0C1848 #15297C #1D3BB1

Accessibility & contrast

On white

16.94
#0C1848 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#0C1848 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1848
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1848#FFFFFF#000000##FFFFFF
##0C18481.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4A
Deuteranopia (green-blind)
#001A47
Tritanopia (blue-blind)
#00242D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #0c1848;
/* rgb */ color: rgb(12, 24, 72);
/* oklch */ color: oklch(23.5% 0.091 267.8);
Tailwind
colors: {
  custom: {
    50: '#56547b',
    500: '#0c1848',
    950: '#000000',
  },
}
SCSS
$custom: #0c1848;
$custom-light: #56547b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1848",
  "rgb": {
    "r": 12,
    "g": 24,
    "b": 72
  },
  "hsl": {
    "h": 228,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.2346,
    "c": 0.09095,
    "h": 267.8
  },
  "luminance": 0.01199
}

Semantic roles & 50–950 ramp

primary
#0C1848
secondary
#84722C
accent
#CA3AEE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030209
muted
#78787B

Preview Lab

Preview with #0C1848

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

Preview Lab → · Contrast checker → · Palette generator →

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