#0C1B47#0C1B47

#0C1B47 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.1% C 0.085 H 265.9°. Best body text is #FFFFFF at 16.62:1 contrast (WCAG AA passes).

Color values

HEX#0C1B47
RGBrgb(12, 27, 71)
HSLhsl(225, 71%, 16%)
HSVhsv(225, 83%, 28%)
CMYKcmyk(83.1%, 62%, 0%, 72.2%)
CIE-LABlab(11.39, 12.19, -29.41)
CIE-LCHlch(11.39, 31.83, 292.51°)
OKLaboklab(24.06% -0.006 -0.0848)
OKLCHoklch(24.06% 0.085 265.9)
XYZxyz(1.6805, 1.3168, 6.1256)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1B47 #47380C
analogous
#0C3947 #0C1B47 #1B0C47
triadic
#0C1B47 #470C1B #1B470C
tetradic
#0C1B47 #470C39 #47380C #0C471B
square
#0C1B47 #470C39 #47380C #0C471B
split-complementary
#0C1B47 #471B0C #39470C
monochromatic
#040A1A #040A1A #0C1B47 #152F7B #1E43B0

Accessibility & contrast

On white

16.62
#0C1B47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#0C1B47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1B47
16.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1B47#FFFFFF#000000##FFFFFF
##0C1B471.0016.621.2616.62
#FFFFFF16.621.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002149
Deuteranopia (green-blind)
#001C46
Tritanopia (blue-blind)
#00262D
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #0c1b47;
/* rgb */ color: rgb(12, 27, 71);
/* oklch */ color: oklch(24.1% 0.085 265.9);
Tailwind
colors: {
  custom: {
    50: '#55567b',
    500: '#0c1b47',
    950: '#000000',
  },
}
SCSS
$custom: #0c1b47;
$custom-light: #55567b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1b47",
  "rgb": {
    "r": 12,
    "g": 27,
    "b": 71
  },
  "hsl": {
    "h": 224.746,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24061,
    "c": 0.08499,
    "h": 265.9
  },
  "luminance": 0.01317
}

Semantic roles & 50–950 ramp

primary
#0C1B47
secondary
#836D2C
accent
#C03AEE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1B47

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

Preview Lab → · Contrast checker → · Palette generator →

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