#0C174E#0C174E

#0C174E is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.9% C 0.102 H 268.4°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#0C174E
RGBrgb(12, 23, 78)
HSLhsl(230, 73%, 18%)
HSVhsv(230, 85%, 31%)
CMYKcmyk(84.6%, 70.5%, 0%, 69.4%)
CIE-LABlab(10.86, 18.32, -35.13)
CIE-LCHlch(10.86, 39.62, 297.55°)
OKLaboklab(23.87% -0.0028 -0.1016)
OKLCHoklch(23.87% 0.102 268.4)
XYZxyz(1.8327, 1.2408, 7.3492)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C174E #4E430C
analogous
#0C384E #0C174E #220C4E
triadic
#0C174E #4E0C17 #174E0C
tetradic
#0C174E #4E0C38 #4E430C #0C4E22
square
#0C174E #4E0C38 #4E430C #0C4E22
split-complementary
#0C174E #4E220C #384E0C
monochromatic
#04081B #04081B #0C174E #142783 #1C36B8

Accessibility & contrast

On white

16.82
#0C174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#0C174E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C174E
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C174E#FFFFFF#000000##FFFFFF
##0C174E1.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002050
Deuteranopia (green-blind)
#001A4D
Tritanopia (blue-blind)
#002530
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #0c174e;
/* rgb */ color: rgb(12, 23, 78);
/* oklch */ color: oklch(23.9% 0.102 268.4);
Tailwind
colors: {
  custom: {
    50: '#585380',
    500: '#0c174e',
    950: '#000000',
  },
}
SCSS
$custom: #0c174e;
$custom-light: #585380;
$custom-dark: #000000;
JSON
{
  "hex": "#0c174e",
  "rgb": {
    "r": 12,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 230,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.2387,
    "c": 0.10166,
    "h": 268.4
  },
  "luminance": 0.01241
}

Semantic roles & 50–950 ramp

primary
#0C174E
secondary
#8A7A2C
accent
#D138F0
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C174E

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

Preview Lab → · Contrast checker → · Palette generator →

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