#0C1246#0C1246

#0C1246 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.0% C 0.096 H 270.7°. Best body text is #FFFFFF at 17.64:1 contrast (WCAG AA passes).

Color values

HEX#0C1246
RGBrgb(12, 18, 70)
HSLhsl(234, 71%, 16%)
HSVhsv(234, 83%, 27%)
CMYKcmyk(82.9%, 74.3%, 0%, 72.5%)
CIE-LABlab(8.59, 18.66, -33.28)
CIE-LCHlch(8.59, 38.15, 299.28°)
OKLaboklab(21.95% 0.0012 -0.0962)
OKLCHoklch(21.95% 0.096 270.7)
XYZxyz(1.4730, 0.9528, 5.8994)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1246 #46400C
analogous
#0C2F46 #0C1246 #230C46
triadic
#0C1246 #460C12 #12460C
tetradic
#0C1246 #460C2F #46400C #0C4623
square
#0C1246 #460C2F #46400C #0C4623
split-complementary
#0C1246 #46230C #2F460C
monochromatic
#04071A #04071A #0C1246 #151F7A #1E2DAE

Accessibility & contrast

On white

17.64
#0C1246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#0C1246 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1246
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1246#FFFFFF#000000##FFFFFF
##0C12461.0017.641.1917.64
#FFFFFF17.641.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B48
Deuteranopia (green-blind)
#001645
Tritanopia (blue-blind)
#00202A
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0c1246;
/* rgb */ color: rgb(12, 18, 70);
/* oklch */ color: oklch(22.0% 0.096 270.7);
Tailwind
colors: {
  custom: {
    50: '#564f7a',
    500: '#0c1246',
    950: '#000000',
  },
}
SCSS
$custom: #0c1246;
$custom-light: #564f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1246",
  "rgb": {
    "r": 12,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 233.793,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.21953,
    "c": 0.09626,
    "h": 270.7
  },
  "luminance": 0.00953
}

Semantic roles & 50–950 ramp

primary
#0C1246
secondary
#82792C
accent
#DB3AED
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #0C1246

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

Preview Lab → · Contrast checker → · Palette generator →

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