#0C1147#0C1147

#0C1147 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.9% C 0.099 H 271.1°. Best body text is #FFFFFF at 17.69:1 contrast (WCAG AA passes).

Color values

HEX#0C1147
RGBrgb(12, 17, 71)
HSLhsl(235, 71%, 16%)
HSVhsv(235, 83%, 28%)
CMYKcmyk(83.1%, 76.1%, 0%, 72.2%)
CIE-LABlab(8.43, 19.82, -34.25)
CIE-LCHlch(8.43, 39.57, 300.05°)
OKLaboklab(21.87% 0.0018 -0.0991)
OKLCHoklch(21.87% 0.099 271.1)
XYZxyz(1.4890, 0.9338, 6.0618)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1147 #47420C
analogous
#0C2F47 #0C1147 #250C47
triadic
#0C1147 #470C11 #11470C
tetradic
#0C1147 #470C2F #47420C #0C4725
square
#0C1147 #470C2F #47420C #0C4725
split-complementary
#0C1147 #47250C #2F470C
monochromatic
#04061A #04061A #0C1147 #151E7B #1E2AB0

Accessibility & contrast

On white

17.69
#0C1147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1147
17.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1147#FFFFFF#000000##FFFFFF
##0C11471.0017.691.1917.69
#FFFFFF17.691.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c1147;
/* rgb */ color: rgb(12, 17, 71);
/* oklch */ color: oklch(21.9% 0.099 271.1);
Tailwind
colors: {
  custom: {
    50: '#564f7b',
    500: '#0c1147',
    950: '#000000',
  },
}
SCSS
$custom: #0c1147;
$custom-light: #564f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1147",
  "rgb": {
    "r": 12,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 234.915,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.21867,
    "c": 0.09912,
    "h": 271.1
  },
  "luminance": 0.00934
}

Semantic roles & 50–950 ramp

primary
#0C1147
secondary
#837C2C
accent
#DF3AEE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030109
muted
#78777B

Preview Lab

Preview with #0C1147

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

Preview Lab → · Contrast checker → · Palette generator →

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