#0C173E#0C173E

#0C173E is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.2% C 0.076 H 267.8°. Best body text is #FFFFFF at 17.39:1 contrast (WCAG AA passes).

Color values

HEX#0C173E
RGBrgb(12, 23, 62)
HSLhsl(227, 68%, 15%)
HSVhsv(227, 81%, 24%)
CMYKcmyk(80.6%, 62.9%, 0%, 75.7%)
CIE-LABlab(9.31, 11.31, -26.46)
CIE-LCHlch(9.31, 28.77, 293.15°)
OKLaboklab(22.24% -0.0029 -0.0762)
OKLCHoklch(22.24% 0.076 267.8)
XYZxyz(1.3272, 1.0386, 4.6870)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C173E #3E330C
analogous
#0C303E #0C173E #1A0C3E
triadic
#0C173E #3E0C17 #173E0C
tetradic
#0C173E #3E0C30 #3E330C #0C3E1A
square
#0C173E #3E0C30 #3E330C #0C3E1A
split-complementary
#0C173E #3E1A0C #303E0C
monochromatic
#050A1A #050A1A #0C173E #162A71 #203DA5

Accessibility & contrast

On white

17.39
#0C173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C173E
17.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C173E#FFFFFF#000000##FFFFFF
##0C173E1.0017.391.2117.39
#FFFFFF17.391.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3F
Deuteranopia (green-blind)
#00183D
Tritanopia (blue-blind)
#002027
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c173e;
/* rgb */ color: rgb(12, 23, 62);
/* oklch */ color: oklch(22.2% 0.076 267.8);
Tailwind
colors: {
  custom: {
    50: '#535374',
    500: '#0c173e',
    950: '#000000',
  },
}
SCSS
$custom: #0c173e;
$custom-light: #535374;
$custom-dark: #000000;
JSON
{
  "hex": "#0c173e",
  "rgb": {
    "r": 12,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 226.8,
    "s": 67.568,
    "l": 14.51
  },
  "oklch": {
    "l": 0.22239,
    "c": 0.07623,
    "h": 267.8
  },
  "luminance": 0.01039
}

Semantic roles & 50–950 ramp

primary
#0C173E
secondary
#7A692C
accent
#C43DEA
background
#F4F4F7
surface
#E8E7ED
border
#C4C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0C173E

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

Preview Lab → · Contrast checker → · Palette generator →

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