#0C1643#0C1643

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

Color values

HEX#0C1643
RGBrgb(12, 22, 67)
HSLhsl(229, 70%, 15%)
HSVhsv(229, 82%, 26%)
CMYKcmyk(82.1%, 67.2%, 0%, 73.7%)
CIE-LABlab(9.46, 14.31, -29.75)
CIE-LCHlch(9.46, 33.02, 295.69°)
OKLaboklab(22.5% -0.0018 -0.0859)
OKLCHoklch(22.5% 0.086 268.8)
XYZxyz(1.4513, 1.0571, 5.4367)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1643 #43390C
analogous
#0C3143 #0C1643 #1D0C43
triadic
#0C1643 #430C16 #16430C
tetradic
#0C1643 #430C31 #43390C #0C431D
square
#0C1643 #430C31 #43390C #0C431D
split-complementary
#0C1643 #431D0C #31430C
monochromatic
#05091A #05091A #0C1643 #152777 #1F38AB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C1643#FFFFFF#000000##FFFFFF
##0C16431.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)
#001D44
Deuteranopia (green-blind)
#001842
Tritanopia (blue-blind)
#002129
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c1643;
/* rgb */ color: rgb(12, 22, 67);
/* oklch */ color: oklch(22.5% 0.086 268.8);
Tailwind
colors: {
  custom: {
    50: '#545278',
    500: '#0c1643',
    950: '#000000',
  },
}
SCSS
$custom: #0c1643;
$custom-light: #545278;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1643",
  "rgb": {
    "r": 12,
    "g": 22,
    "b": 67
  },
  "hsl": {
    "h": 229.091,
    "s": 69.62,
    "l": 15.49
  },
  "oklch": {
    "l": 0.22496,
    "c": 0.0859,
    "h": 268.8
  },
  "luminance": 0.01057
}

Semantic roles & 50–950 ramp

primary
#0C1643
secondary
#7F702C
accent
#CC3BEC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #0C1643

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

Preview Lab → · Contrast checker → · Palette generator →

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