#0C1B2E#0C1B2E

#0C1B2E is a very dark, muted cyan. Relative luminance 0.011; OKLCH L 22.0% C 0.043 H 255.1°. Best body text is #FFFFFF at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#0C1B2E
RGBrgb(12, 27, 46)
HSLhsl(214, 59%, 11%)
HSVhsv(214, 74%, 18%)
CMYKcmyk(73.9%, 41.3%, 0%, 82%)
CIE-LABlab(9.48, 1.07, -14.64)
CIE-LCHlch(9.48, 14.68, 274.19°)
OKLaboklab(21.98% -0.011 -0.0414)
OKLCHoklch(21.98% 0.043 255.1)
XYZxyz(1.0365, 1.0592, 2.7341)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1B2E #2E1F0C
analogous
#0C2C2E #0C1B2E #0E0C2E
triadic
#0C1B2E #2E0C1B #1B2E0C
tetradic
#0C1B2E #2E0C2C #2E1F0C #0C2E0E
square
#0C1B2E #2E0C2C #2E1F0C #0C2E0E
split-complementary
#0C1B2E #2E0E0C #2C2E0C
monochromatic
#060E18 #060E18 #0C1B2E #19375F #25548F

Accessibility & contrast

On white

17.33
#0C1B2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1B2E
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1B2E#FFFFFF#000000##FFFFFF
##0C1B2E1.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131C2F
Deuteranopia (green-blind)
#0E192E
Tritanopia (blue-blind)
#001F22
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c1b2e;
/* rgb */ color: rgb(12, 27, 46);
/* oklch */ color: oklch(22.0% 0.043 255.1);
Tailwind
colors: {
  custom: {
    50: '#4e5666',
    500: '#0c1b2e',
    950: '#000000',
  },
}
SCSS
$custom: #0c1b2e;
$custom-light: #4e5666;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1b2e",
  "rgb": {
    "r": 12,
    "g": 27,
    "b": 46
  },
  "hsl": {
    "h": 213.529,
    "s": 58.621,
    "l": 11.373
  },
  "oklch": {
    "l": 0.21976,
    "c": 0.04286,
    "h": 255.1
  },
  "luminance": 0.01059
}

Semantic roles & 50–950 ramp

primary
#0C1B2E
secondary
#6A4F2C
accent
#9D46E2
background
#F4F5F6
surface
#E7E9EB
border
#C3C5C6
text
#020306
muted
#78787A

Preview Lab

Preview with #0C1B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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