#0C114E#0C114E

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

Color values

HEX#0C114E
RGBrgb(12, 17, 78)
HSLhsl(235, 73%, 18%)
HSVhsv(235, 85%, 31%)
CMYKcmyk(84.6%, 78.2%, 0%, 69.4%)
CIE-LABlab(9.23, 22.69, -37.80)
CIE-LCHlch(9.23, 44.09, 300.98°)
OKLaboklab(22.69% 0.0009 -0.1094)
OKLCHoklch(22.69% 0.109 270.5)
XYZxyz(1.7267, 1.0289, 7.3138)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C114E #4E490C
analogous
#0C324E #0C114E #280C4E
triadic
#0C114E #4E0C11 #114E0C
tetradic
#0C114E #4E0C32 #4E490C #0C4E28
square
#0C114E #4E0C32 #4E490C #0C4E28
split-complementary
#0C114E #4E280C #324E0C
monochromatic
#04061B #04061B #0C114E #141D83 #1C28B8

Accessibility & contrast

On white

17.42
#0C114E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C114E
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C114E#FFFFFF#000000##FFFFFF
##0C114E1.0017.421.2117.42
#FFFFFF17.421.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c114e;
/* rgb */ color: rgb(12, 17, 78);
/* oklch */ color: oklch(22.7% 0.109 270.5);
Tailwind
colors: {
  custom: {
    50: '#584f80',
    500: '#0c114e',
    950: '#000000',
  },
}
SCSS
$custom: #0c114e;
$custom-light: #584f80;
$custom-dark: #000000;
JSON
{
  "hex": "#0c114e",
  "rgb": {
    "r": 12,
    "g": 17,
    "b": 78
  },
  "hsl": {
    "h": 235.455,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.22688,
    "c": 0.10945,
    "h": 270.5
  },
  "luminance": 0.01029
}

Semantic roles & 50–950 ramp

primary
#0C114E
secondary
#8A822C
accent
#E238F0
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C114E

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

Preview Lab → · Contrast checker → · Palette generator →

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