#0C114F#0C114F

#0C114F is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.8% C 0.111 H 270.4°. Best body text is #FFFFFF at 17.37:1 contrast (WCAG AA passes).

Color values

HEX#0C114F
RGBrgb(12, 17, 79)
HSLhsl(236, 74%, 18%)
HSVhsv(236, 85%, 31%)
CMYKcmyk(84.8%, 78.5%, 0%, 69%)
CIE-LABlab(9.35, 23.09, -38.30)
CIE-LCHlch(9.35, 44.72, 301.09°)
OKLaboklab(22.81% 0.0007 -0.1109)
OKLCHoklch(22.81% 0.111 270.4)
XYZxyz(1.7629, 1.0434, 7.5041)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C114F #4F4A0C
analogous
#0C334F #0C114F #280C4F
triadic
#0C114F #4F0C11 #114F0C
tetradic
#0C114F #4F0C33 #4F4A0C #0C4F28
square
#0C114F #4F0C33 #4F4A0C #0C4F28
split-complementary
#0C114F #4F280C #334F0C
monochromatic
#04061B #04061B #0C114F #141C84 #1C28B9

Accessibility & contrast

On white

17.37
#0C114F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C114F
17.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C114F#FFFFFF#000000##FFFFFF
##0C114F1.0017.371.2117.37
#FFFFFF17.371.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D51
Deuteranopia (green-blind)
#00174E
Tritanopia (blue-blind)
#00232E
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c114f;
/* rgb */ color: rgb(12, 17, 79);
/* oklch */ color: oklch(22.8% 0.111 270.4);
Tailwind
colors: {
  custom: {
    50: '#594f81',
    500: '#0c114f',
    950: '#000000',
  },
}
SCSS
$custom: #0c114f;
$custom-light: #594f81;
$custom-dark: #000000;
JSON
{
  "hex": "#0c114f",
  "rgb": {
    "r": 12,
    "g": 17,
    "b": 79
  },
  "hsl": {
    "h": 235.522,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.22808,
    "c": 0.11089,
    "h": 270.4
  },
  "luminance": 0.01044
}

Semantic roles & 50–950 ramp

primary
#0C114F
secondary
#8B832C
accent
#E238F0
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C114F

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

Preview Lab → · Contrast checker → · Palette generator →

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