#0C1348#0C1348

#0C1348 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.4% C 0.098 H 270.2°. Best body text is #FFFFFF at 17.47:1 contrast (WCAG AA passes).

Color values

HEX#0C1348
RGBrgb(12, 19, 72)
HSLhsl(233, 71%, 16%)
HSVhsv(233, 83%, 28%)
CMYKcmyk(83.3%, 73.6%, 0%, 71.8%)
CIE-LABlab(9.09, 18.76, -33.87)
CIE-LCHlch(9.09, 38.72, 298.99°)
OKLaboklab(22.38% 0.0004 -0.098)
OKLCHoklch(22.38% 0.098 270.2)
XYZxyz(1.5538, 1.0116, 6.2430)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1348 #48410C
analogous
#0C3148 #0C1348 #230C48
triadic
#0C1348 #480C13 #13480C
tetradic
#0C1348 #480C31 #48410C #0C4823
square
#0C1348 #480C31 #48410C #0C4823
split-complementary
#0C1348 #48230C #31480C
monochromatic
#04071A #04071A #0C1348 #15217C #1D2FB1

Accessibility & contrast

On white

17.47
#0C1348 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1348
17.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1348#FFFFFF#000000##FFFFFF
##0C13481.0017.471.2017.47
#FFFFFF17.471.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4A
Deuteranopia (green-blind)
#001747
Tritanopia (blue-blind)
#00212B
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c1348;
/* rgb */ color: rgb(12, 19, 72);
/* oklch */ color: oklch(22.4% 0.098 270.2);
Tailwind
colors: {
  custom: {
    50: '#56507c',
    500: '#0c1348',
    950: '#000000',
  },
}
SCSS
$custom: #0c1348;
$custom-light: #56507c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1348",
  "rgb": {
    "r": 12,
    "g": 19,
    "b": 72
  },
  "hsl": {
    "h": 233,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.22381,
    "c": 0.09796,
    "h": 270.2
  },
  "luminance": 0.01012
}

Semantic roles & 50–950 ramp

primary
#0C1348
secondary
#847A2C
accent
#D93AEE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030209
muted
#78787B

Preview Lab

Preview with #0C1348

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

Preview Lab → · Contrast checker → · Palette generator →

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