#0C1247#0C1247

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

Color values

HEX#0C1247
RGBrgb(12, 18, 71)
HSLhsl(234, 71%, 16%)
HSVhsv(234, 83%, 28%)
CMYKcmyk(83.1%, 74.6%, 0%, 72.2%)
CIE-LABlab(8.70, 19.08, -33.80)
CIE-LCHlch(8.70, 38.82, 299.45°)
OKLaboklab(22.07% 0.0011 -0.0978)
OKLCHoklch(22.07% 0.098 270.7)
XYZxyz(1.5049, 0.9655, 6.0671)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1247 #47410C
analogous
#0C3047 #0C1247 #240C47
triadic
#0C1247 #470C12 #12470C
tetradic
#0C1247 #470C30 #47410C #0C4724
square
#0C1247 #470C30 #47410C #0C4724
split-complementary
#0C1247 #47240C #30470C
monochromatic
#04071A #04071A #0C1247 #151F7B #1E2DB0

Accessibility & contrast

On white

17.60
#0C1247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1247
17.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1247#FFFFFF#000000##FFFFFF
##0C12471.0017.601.1917.60
#FFFFFF17.601.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c1247;
/* rgb */ color: rgb(12, 18, 71);
/* oklch */ color: oklch(22.1% 0.098 270.7);
Tailwind
colors: {
  custom: {
    50: '#564f7b',
    500: '#0c1247',
    950: '#000000',
  },
}
SCSS
$custom: #0c1247;
$custom-light: #564f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1247",
  "rgb": {
    "r": 12,
    "g": 18,
    "b": 71
  },
  "hsl": {
    "h": 233.898,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.22066,
    "c": 0.09779,
    "h": 270.7
  },
  "luminance": 0.00966
}

Semantic roles & 50–950 ramp

primary
#0C1247
secondary
#837A2C
accent
#DC3AEE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030209
muted
#78787B

Preview Lab

Preview with #0C1247

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

Preview Lab → · Contrast checker → · Palette generator →

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