#0C114D#0C114D

#0C114D is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.6% C 0.108 H 270.5°. Best body text is #FFFFFF at 17.46:1 contrast (WCAG AA passes).

Color values

HEX#0C114D
RGBrgb(12, 17, 77)
HSLhsl(235, 73%, 17%)
HSVhsv(235, 84%, 30%)
CMYKcmyk(84.4%, 77.9%, 0%, 69.8%)
CIE-LABlab(9.11, 22.29, -37.30)
CIE-LCHlch(9.11, 43.45, 300.86°)
OKLaboklab(22.57% 0.001 -0.108)
OKLCHoklch(22.57% 0.108 270.5)
XYZxyz(1.6912, 1.0147, 7.1265)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C114D #4D480C
analogous
#0C314D #0C114D #280C4D
triadic
#0C114D #4D0C11 #114D0C
tetradic
#0C114D #4D0C31 #4D480C #0C4D28
square
#0C114D #4D0C31 #4D480C #0C4D28
split-complementary
#0C114D #4D280C #314D0C
monochromatic
#04061A #04061A #0C114D #141D82 #1D28B7

Accessibility & contrast

On white

17.46
#0C114D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#0C114D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C114D
17.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C114D#FFFFFF#000000##FFFFFF
##0C114D1.0017.461.2017.46
#FFFFFF17.461.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4F
Deuteranopia (green-blind)
#00174C
Tritanopia (blue-blind)
#00222D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c114d;
/* rgb */ color: rgb(12, 17, 77);
/* oklch */ color: oklch(22.6% 0.108 270.5);
Tailwind
colors: {
  custom: {
    50: '#584f80',
    500: '#0c114d',
    950: '#000000',
  },
}
SCSS
$custom: #0c114d;
$custom-light: #584f80;
$custom-dark: #000000;
JSON
{
  "hex": "#0c114d",
  "rgb": {
    "r": 12,
    "g": 17,
    "b": 77
  },
  "hsl": {
    "h": 235.385,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.22569,
    "c": 0.10799,
    "h": 270.5
  },
  "luminance": 0.01015
}

Semantic roles & 50–950 ramp

primary
#0C114D
secondary
#89822C
accent
#E238F0
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C114D

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

Preview Lab → · Contrast checker → · Palette generator →

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