#0C1740#0C1740

#0C1740 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.4% C 0.080 H 268.0°. Best body text is #FFFFFF at 17.32:1 contrast (WCAG AA passes).

Color values

HEX#0C1740
RGBrgb(12, 23, 64)
HSLhsl(227, 68%, 15%)
HSVhsv(227, 81%, 25%)
CMYKcmyk(81.2%, 64.1%, 0%, 74.9%)
CIE-LABlab(9.49, 12.20, -27.58)
CIE-LCHlch(9.49, 30.16, 293.86°)
OKLaboklab(22.43% -0.0028 -0.0795)
OKLCHoklch(22.43% 0.08 268)
XYZxyz(1.3831, 1.0610, 4.9814)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1740 #40350C
analogous
#0C3140 #0C1740 #1B0C40
triadic
#0C1740 #400C17 #17400C
tetradic
#0C1740 #400C31 #40350C #0C401B
square
#0C1740 #400C31 #40350C #0C401B
split-complementary
#0C1740 #401B0C #31400C
monochromatic
#05091A #05091A #0C1740 #162A74 #1F3CA7

Accessibility & contrast

On white

17.32
#0C1740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#0C1740 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1740
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1740#FFFFFF#000000##FFFFFF
##0C17401.0017.321.2117.32
#FFFFFF17.321.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D41
Deuteranopia (green-blind)
#00183F
Tritanopia (blue-blind)
#002128
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c1740;
/* rgb */ color: rgb(12, 23, 64);
/* oklch */ color: oklch(22.4% 0.080 268.0);
Tailwind
colors: {
  custom: {
    50: '#535375',
    500: '#0c1740',
    950: '#000000',
  },
}
SCSS
$custom: #0c1740;
$custom-light: #535375;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1740",
  "rgb": {
    "r": 12,
    "g": 23,
    "b": 64
  },
  "hsl": {
    "h": 227.308,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22432,
    "c": 0.07954,
    "h": 268
  },
  "luminance": 0.01061
}

Semantic roles & 50–950 ramp

primary
#0C1740
secondary
#7C6B2C
accent
#C63DEB
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0C1740

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

Preview Lab → · Contrast checker → · Palette generator →

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