#0C114B#0C114B

#0C114B is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.3% C 0.105 H 270.7°. Best body text is #FFFFFF at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#0C114B
RGBrgb(12, 17, 75)
HSLhsl(235, 72%, 17%)
HSVhsv(235, 84%, 29%)
CMYKcmyk(84%, 77.3%, 0%, 70.6%)
CIE-LABlab(8.88, 21.47, -36.30)
CIE-LCHlch(8.88, 42.17, 300.60°)
OKLaboklab(22.33% 0.0013 -0.1051)
OKLCHoklch(22.33% 0.105 270.7)
XYZxyz(1.6216, 0.9869, 6.7603)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C114B #4B460C
analogous
#0C314B #0C114B #270C4B
triadic
#0C114B #4B0C11 #114B0C
tetradic
#0C114B #4B0C31 #4B460C #0C4B27
square
#0C114B #4B0C31 #4B460C #0C4B27
split-complementary
#0C114B #4B270C #314B0C
monochromatic
#04061A #04061A #0C114B #141D80 #1D29B5

Accessibility & contrast

On white

17.54
#0C114B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C114B
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C114B#FFFFFF#000000##FFFFFF
##0C114B1.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4D
Deuteranopia (green-blind)
#00164A
Tritanopia (blue-blind)
#00212C
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0c114b;
/* rgb */ color: rgb(12, 17, 75);
/* oklch */ color: oklch(22.3% 0.105 270.7);
Tailwind
colors: {
  custom: {
    50: '#584f7e',
    500: '#0c114b',
    950: '#000000',
  },
}
SCSS
$custom: #0c114b;
$custom-light: #584f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c114b",
  "rgb": {
    "r": 12,
    "g": 17,
    "b": 75
  },
  "hsl": {
    "h": 235.238,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.22333,
    "c": 0.10507,
    "h": 270.7
  },
  "luminance": 0.00987
}

Semantic roles & 50–950 ramp

primary
#0C114B
secondary
#87802C
accent
#E139EF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C114B

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

Preview Lab → · Contrast checker → · Palette generator →

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