#0C1735#0C1735

#0C1735 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.4% C 0.061 H 266.2°. Best body text is #FFFFFF at 17.65:1 contrast (WCAG AA passes).

Color values

HEX#0C1735
RGBrgb(12, 23, 53)
HSLhsl(224, 63%, 13%)
HSVhsv(224, 77%, 21%)
CMYKcmyk(77.4%, 56.6%, 0%, 79.2%)
CIE-LABlab(8.55, 7.29, -21.22)
CIE-LCHlch(8.55, 22.44, 288.97°)
OKLaboklab(21.42% -0.004 -0.0608)
OKLCHoklch(21.42% 0.061 266.2)
XYZxyz(1.1004, 0.9479, 3.4924)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1735 #352A0C
analogous
#0C2B35 #0C1735 #150C35
triadic
#0C1735 #350C17 #17350C
tetradic
#0C1735 #350C2B #352A0C #0C3515
square
#0C1735 #350C2B #352A0C #0C3515
split-complementary
#0C1735 #35150C #2B350C
monochromatic
#060B19 #060B19 #0C1735 #172D67 #234299

Accessibility & contrast

On white

17.65
#0C1735 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1735
17.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1735#FFFFFF#000000##FFFFFF
##0C17351.0017.651.1917.65
#FFFFFF17.651.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081B36
Deuteranopia (green-blind)
#021734
Tritanopia (blue-blind)
#001E23
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0c1735;
/* rgb */ color: rgb(12, 23, 53);
/* oklch */ color: oklch(21.4% 0.061 266.2);
Tailwind
colors: {
  custom: {
    50: '#50536c',
    500: '#0c1735',
    950: '#000000',
  },
}
SCSS
$custom: #0c1735;
$custom-light: #50536c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1735",
  "rgb": {
    "r": 12,
    "g": 23,
    "b": 53
  },
  "hsl": {
    "h": 223.902,
    "s": 63.077,
    "l": 12.745
  },
  "oklch": {
    "l": 0.21422,
    "c": 0.06089,
    "h": 266.2
  },
  "luminance": 0.00948
}

Semantic roles & 50–950 ramp

primary
#0C1735
secondary
#715E2C
accent
#BA42E6
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020207
muted
#78787A

Preview Lab

Preview with #0C1735

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

Preview Lab → · Contrast checker → · Palette generator →

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