#0C1849#0C1849

#0C1849 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.6% C 0.093 H 267.9°. Best body text is #FFFFFF at 16.90:1 contrast (WCAG AA passes).

Color values

HEX#0C1849
RGBrgb(12, 24, 73)
HSLhsl(228, 72%, 17%)
HSVhsv(228, 84%, 29%)
CMYKcmyk(83.6%, 67.1%, 0%, 71.4%)
CIE-LABlab(10.65, 15.39, -32.01)
CIE-LCHlch(10.65, 35.52, 295.68°)
OKLaboklab(23.56% -0.0034 -0.0925)
OKLCHoklch(23.56% 0.093 267.9)
XYZxyz(1.6804, 1.2123, 6.4475)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1849 #493D0C
analogous
#0C3749 #0C1849 #1F0C49
triadic
#0C1849 #490C18 #18490C
tetradic
#0C1849 #490C37 #493D0C #0C491F
square
#0C1849 #490C37 #493D0C #0C491F
split-complementary
#0C1849 #491F0C #37490C
monochromatic
#04091A #04091A #0C1849 #15297E #1D3BB2

Accessibility & contrast

On white

16.90
#0C1849 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1849
16.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1849#FFFFFF#000000##FFFFFF
##0C18491.0016.901.2416.90
#FFFFFF16.901.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204B
Deuteranopia (green-blind)
#001A48
Tritanopia (blue-blind)
#00242D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #0c1849;
/* rgb */ color: rgb(12, 24, 73);
/* oklch */ color: oklch(23.6% 0.093 267.9);
Tailwind
colors: {
  custom: {
    50: '#56547c',
    500: '#0c1849',
    950: '#000000',
  },
}
SCSS
$custom: #0c1849;
$custom-light: #56547c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1849",
  "rgb": {
    "r": 12,
    "g": 24,
    "b": 73
  },
  "hsl": {
    "h": 228.197,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.23562,
    "c": 0.09253,
    "h": 267.9
  },
  "luminance": 0.01212
}

Semantic roles & 50–950 ramp

primary
#0C1849
secondary
#85732C
accent
#CB39EE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030209
muted
#78787B

Preview Lab

Preview with #0C1849

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

Preview Lab → · Contrast checker → · Palette generator →

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