#0C173B#0C173B

#0C173B is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.0% C 0.071 H 267.4°. Best body text is #FFFFFF at 17.48:1 contrast (WCAG AA passes).

Color values

HEX#0C173B
RGBrgb(12, 23, 59)
HSLhsl(226, 66%, 14%)
HSVhsv(226, 80%, 23%)
CMYKcmyk(79.7%, 61%, 0%, 76.9%)
CIE-LABlab(9.05, 9.97, -24.74)
CIE-LCHlch(9.05, 26.68, 291.96°)
OKLaboklab(21.96% -0.0032 -0.0711)
OKLCHoklch(21.96% 0.071 267.4)
XYZxyz(1.2472, 1.0066, 4.2654)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C173B #3B300C
analogous
#0C2F3B #0C173B #190C3B
triadic
#0C173B #3B0C17 #173B0C
tetradic
#0C173B #3B0C2F #3B300C #0C3B19
square
#0C173B #3B0C2F #3B300C #0C3B19
split-complementary
#0C173B #3B190C #2F3B0C
monochromatic
#050A19 #050A19 #0C173B #162B6E #213FA1

Accessibility & contrast

On white

17.48
#0C173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C173B
17.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C173B#FFFFFF#000000##FFFFFF
##0C173B1.0017.481.2017.48
#FFFFFF17.481.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021C3C
Deuteranopia (green-blind)
#00183A
Tritanopia (blue-blind)
#002026
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c173b;
/* rgb */ color: rgb(12, 23, 59);
/* oklch */ color: oklch(22.0% 0.071 267.4);
Tailwind
colors: {
  custom: {
    50: '#525371',
    500: '#0c173b',
    950: '#000000',
  },
}
SCSS
$custom: #0c173b;
$custom-light: #525371;
$custom-dark: #000000;
JSON
{
  "hex": "#0c173b",
  "rgb": {
    "r": 12,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 225.957,
    "s": 66.197,
    "l": 13.922
  },
  "oklch": {
    "l": 0.21958,
    "c": 0.0712,
    "h": 267.4
  },
  "luminance": 0.01007
}

Semantic roles & 50–950 ramp

primary
#0C173B
secondary
#77652C
accent
#C13FE9
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #0C173B

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

Preview Lab → · Contrast checker → · Palette generator →

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