#0C1351#0C1351

#0C1351 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.4% C 0.111 H 269.7°. Best body text is #FFFFFF at 17.11:1 contrast (WCAG AA passes).

Color values

HEX#0C1351
RGBrgb(12, 19, 81)
HSLhsl(234, 74%, 18%)
HSVhsv(234, 85%, 32%)
CMYKcmyk(85.2%, 76.5%, 0%, 68.2%)
CIE-LABlab(10.09, 22.50, -38.45)
CIE-LCHlch(10.09, 44.55, 300.34°)
OKLaboklab(23.41% -0.0006 -0.1113)
OKLCHoklch(23.41% 0.111 269.7)
XYZxyz(1.8692, 1.1378, 7.9041)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1351 #514A0C
analogous
#0C3551 #0C1351 #270C51
triadic
#0C1351 #510C13 #13510C
tetradic
#0C1351 #510C35 #514A0C #0C5127
square
#0C1351 #510C35 #514A0C #0C5127
split-complementary
#0C1351 #51270C #35510C
monochromatic
#04061B #04061C #0C1351 #142086 #1C2CBC

Accessibility & contrast

On white

17.11
#0C1351 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#0C1351 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1351
17.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1351#FFFFFF#000000##FFFFFF
##0C13511.0017.111.2317.11
#FFFFFF17.111.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F53
Deuteranopia (green-blind)
#001850
Tritanopia (blue-blind)
#002430
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0c1351;
/* rgb */ color: rgb(12, 19, 81);
/* oklch */ color: oklch(23.4% 0.111 269.7);
Tailwind
colors: {
  custom: {
    50: '#595183',
    500: '#0c1351',
    950: '#000000',
  },
}
SCSS
$custom: #0c1351;
$custom-light: #595183;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1351",
  "rgb": {
    "r": 12,
    "g": 19,
    "b": 81
  },
  "hsl": {
    "h": 233.913,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23412,
    "c": 0.11134,
    "h": 269.7
  },
  "luminance": 0.01138
}

Semantic roles & 50–950 ramp

primary
#0C1351
secondary
#8C832C
accent
#DE37F1
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020B
muted
#79787C

Preview Lab

Preview with #0C1351

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

Preview Lab → · Contrast checker → · Palette generator →

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