#0C1148#0C1148

#0C1148 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 22.0% C 0.101 H 271.0°. Best body text is #FFFFFF at 17.66:1 contrast (WCAG AA passes).

Color values

HEX#0C1148
RGBrgb(12, 17, 72)
HSLhsl(235, 71%, 16%)
HSVhsv(235, 83%, 28%)
CMYKcmyk(83.3%, 76.4%, 0%, 71.8%)
CIE-LABlab(8.54, 20.23, -34.77)
CIE-LCHlch(8.54, 40.23, 300.20°)
OKLaboklab(21.98% 0.0017 -0.1006)
OKLCHoklch(21.98% 0.101 271)
XYZxyz(1.5214, 0.9468, 6.2322)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1148 #48430C
analogous
#0C2F48 #0C1148 #250C48
triadic
#0C1148 #480C11 #11480C
tetradic
#0C1148 #480C2F #48430C #0C4825
square
#0C1148 #480C2F #48430C #0C4825
split-complementary
#0C1148 #48250C #2F480C
monochromatic
#04061A #04061A #0C1148 #151D7C #1D2AB1

Accessibility & contrast

On white

17.66
#0C1148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#0C1148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1148
17.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1148#FFFFFF#000000##FFFFFF
##0C11481.0017.661.1917.66
#FFFFFF17.661.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4A
Deuteranopia (green-blind)
#001647
Tritanopia (blue-blind)
#00202A
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0c1148;
/* rgb */ color: rgb(12, 17, 72);
/* oklch */ color: oklch(22.0% 0.101 271.0);
Tailwind
colors: {
  custom: {
    50: '#574f7c',
    500: '#0c1148',
    950: '#000000',
  },
}
SCSS
$custom: #0c1148;
$custom-light: #574f7c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1148",
  "rgb": {
    "r": 12,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 235,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.21983,
    "c": 0.10061,
    "h": 271
  },
  "luminance": 0.00947
}

Semantic roles & 50–950 ramp

primary
#0C1148
secondary
#847D2C
accent
#DF3AEE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #0C1148

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

Preview Lab → · Contrast checker → · Palette generator →

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