#0C1546#0C1546

#0C1546 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.6% C 0.092 H 269.4°. Best body text is #FFFFFF at 17.34:1 contrast (WCAG AA passes).

Color values

HEX#0C1546
RGBrgb(12, 21, 70)
HSLhsl(231, 71%, 16%)
HSVhsv(231, 83%, 27%)
CMYKcmyk(82.9%, 70%, 0%, 72.5%)
CIE-LABlab(9.45, 16.39, -31.87)
CIE-LCHlch(9.45, 35.84, 297.22°)
OKLaboklab(22.59% -0.001 -0.0921)
OKLCHoklch(22.59% 0.092 269.4)
XYZxyz(1.5249, 1.0565, 5.9167)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1546 #463D0C
analogous
#0C3246 #0C1546 #200C46
triadic
#0C1546 #460C15 #15460C
tetradic
#0C1546 #460C32 #463D0C #0C4620
square
#0C1546 #460C32 #463D0C #0C4620
split-complementary
#0C1546 #46200C #32460C
monochromatic
#04081A #04081A #0C1546 #15257A #1E34AE

Accessibility & contrast

On white

17.34
#0C1546 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#0C1546 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1546
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1546#FFFFFF#000000##FFFFFF
##0C15461.0017.341.2117.34
#FFFFFF17.341.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D48
Deuteranopia (green-blind)
#001845
Tritanopia (blue-blind)
#00222B
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c1546;
/* rgb */ color: rgb(12, 21, 70);
/* oklch */ color: oklch(22.6% 0.092 269.4);
Tailwind
colors: {
  custom: {
    50: '#55527a',
    500: '#0c1546',
    950: '#000000',
  },
}
SCSS
$custom: #0c1546;
$custom-light: #55527a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1546",
  "rgb": {
    "r": 12,
    "g": 21,
    "b": 70
  },
  "hsl": {
    "h": 230.69,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.22585,
    "c": 0.0921,
    "h": 269.4
  },
  "luminance": 0.01057
}

Semantic roles & 50–950 ramp

primary
#0C1546
secondary
#82752C
accent
#D23AED
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #0C1546

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

Preview Lab → · Contrast checker → · Palette generator →

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