#0C113E#0C113E

#0C113E is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.9% C 0.085 H 271.8°. Best body text is #FFFFFF at 18.02:1 contrast (WCAG AA passes).

Color values

HEX#0C113E
RGBrgb(12, 17, 62)
HSLhsl(234, 68%, 15%)
HSVhsv(234, 81%, 24%)
CMYKcmyk(80.6%, 72.6%, 0%, 75.7%)
CIE-LABlab(7.47, 15.96, -29.46)
CIE-LCHlch(7.47, 33.50, 298.45°)
OKLaboklab(20.86% 0.0027 -0.0851)
OKLCHoklch(20.86% 0.085 271.8)
XYZxyz(1.2213, 0.8267, 4.6517)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C113E #3E390C
analogous
#0C2A3E #0C113E #200C3E
triadic
#0C113E #3E0C11 #113E0C
tetradic
#0C113E #3E0C2A #3E390C #0C3E20
square
#0C113E #3E0C2A #3E390C #0C3E20
split-complementary
#0C113E #3E200C #2A3E0C
monochromatic
#05071A #05071A #0C113E #161F71 #202DA5

Accessibility & contrast

On white

18.02
#0C113E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#0C113E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C113E
18.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C113E#FFFFFF#000000##FFFFFF
##0C113E1.0018.021.1718.02
#FFFFFF18.021.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193F
Deuteranopia (green-blind)
#00143D
Tritanopia (blue-blind)
#001D25
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #0c113e;
/* rgb */ color: rgb(12, 17, 62);
/* oklch */ color: oklch(20.9% 0.085 271.8);
Tailwind
colors: {
  custom: {
    50: '#534e74',
    500: '#0c113e',
    950: '#000000',
  },
}
SCSS
$custom: #0c113e;
$custom-light: #534e74;
$custom-dark: #000000;
JSON
{
  "hex": "#0c113e",
  "rgb": {
    "r": 12,
    "g": 17,
    "b": 62
  },
  "hsl": {
    "h": 234,
    "s": 67.568,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20861,
    "c": 0.08516,
    "h": 271.8
  },
  "luminance": 0.00827
}

Semantic roles & 50–950 ramp

primary
#0C113E
secondary
#7A722C
accent
#D93DEA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0C113E

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

Preview Lab → · Contrast checker → · Palette generator →

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