#0C163F#0C163F

#0C163F is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.1% C 0.079 H 268.6°. Best body text is #FFFFFF at 17.47:1 contrast (WCAG AA passes).

Color values

HEX#0C163F
RGBrgb(12, 22, 63)
HSLhsl(228, 68%, 15%)
HSVhsv(228, 81%, 25%)
CMYKcmyk(81%, 65.1%, 0%, 75.3%)
CIE-LABlab(9.08, 12.55, -27.54)
CIE-LCHlch(9.08, 30.26, 294.49°)
OKLaboklab(22.1% -0.0019 -0.0794)
OKLCHoklch(22.1% 0.079 268.6)
XYZxyz(1.3354, 1.0107, 4.8264)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C163F #3F350C
analogous
#0C303F #0C163F #1B0C3F
triadic
#0C163F #3F0C16 #163F0C
tetradic
#0C163F #3F0C30 #3F350C #0C3F1B
square
#0C163F #3F0C30 #3F350C #0C3F1B
split-complementary
#0C163F #3F1B0C #303F0C
monochromatic
#05091A #05091A #0C163F #162872 #203AA6

Accessibility & contrast

On white

17.47
#0C163F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C163F
17.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C163F#FFFFFF#000000##FFFFFF
##0C163F1.0017.471.2017.47
#FFFFFF17.471.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C40
Deuteranopia (green-blind)
#00173E
Tritanopia (blue-blind)
#002027
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c163f;
/* rgb */ color: rgb(12, 22, 63);
/* oklch */ color: oklch(22.1% 0.079 268.6);
Tailwind
colors: {
  custom: {
    50: '#535274',
    500: '#0c163f',
    950: '#000000',
  },
}
SCSS
$custom: #0c163f;
$custom-light: #535274;
$custom-dark: #000000;
JSON
{
  "hex": "#0c163f",
  "rgb": {
    "r": 12,
    "g": 22,
    "b": 63
  },
  "hsl": {
    "h": 228.235,
    "s": 68,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22096,
    "c": 0.07939,
    "h": 268.6
  },
  "luminance": 0.01011
}

Semantic roles & 50–950 ramp

primary
#0C163F
secondary
#7B6C2C
accent
#C93DEB
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0C163F

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

Preview Lab → · Contrast checker → · Palette generator →

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