#0C1846#0C1846

#0C1846 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.3% C 0.088 H 267.7°. Best body text is #FFFFFF at 17.01:1 contrast (WCAG AA passes).

Color values

HEX#0C1846
RGBrgb(12, 24, 70)
HSLhsl(228, 71%, 16%)
HSVhsv(228, 83%, 27%)
CMYKcmyk(82.9%, 65.7%, 0%, 72.5%)
CIE-LABlab(10.36, 14.08, -30.39)
CIE-LCHlch(10.36, 33.49, 294.86°)
OKLaboklab(23.26% -0.0035 -0.0877)
OKLCHoklch(23.26% 0.088 267.7)
XYZxyz(1.5834, 1.1735, 5.9362)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1846 #463A0C
analogous
#0C3546 #0C1846 #1D0C46
triadic
#0C1846 #460C18 #18460C
tetradic
#0C1846 #460C35 #463A0C #0C461D
square
#0C1846 #460C35 #463A0C #0C461D
split-complementary
#0C1846 #461D0C #35460C
monochromatic
#04091A #04091A #0C1846 #152A7A #1E3CAE

Accessibility & contrast

On white

17.01
#0C1846 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1846
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1846#FFFFFF#000000##FFFFFF
##0C18461.0017.011.2317.01
#FFFFFF17.011.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c1846;
/* rgb */ color: rgb(12, 24, 70);
/* oklch */ color: oklch(23.3% 0.088 267.7);
Tailwind
colors: {
  custom: {
    50: '#55547a',
    500: '#0c1846',
    950: '#000000',
  },
}
SCSS
$custom: #0c1846;
$custom-light: #55547a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1846",
  "rgb": {
    "r": 12,
    "g": 24,
    "b": 70
  },
  "hsl": {
    "h": 227.586,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.23258,
    "c": 0.08778,
    "h": 267.7
  },
  "luminance": 0.01174
}

Semantic roles & 50–950 ramp

primary
#0C1846
secondary
#82702C
accent
#C83AED
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #0C1846

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

Preview Lab → · Contrast checker → · Palette generator →

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