#0C2138#0C2138

#0C2138 is a very dark, muted cyan. Relative luminance 0.015; OKLCH L 24.4% C 0.052 H 252.5°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#0C2138
RGBrgb(12, 33, 56)
HSLhsl(211, 65%, 13%)
HSVhsv(211, 79%, 22%)
CMYKcmyk(78.6%, 41.1%, 0%, 78%)
CIE-LABlab(12.29, 0.87, -17.40)
CIE-LCHlch(12.29, 17.43, 272.85°)
OKLaboklab(24.39% -0.0155 -0.0494)
OKLCHoklch(24.39% 0.052 252.5)
XYZxyz(1.4090, 1.4513, 3.9465)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2138 #38230C
analogous
#0C3738 #0C2138 #0D0C38
triadic
#0C2138 #380C21 #21380C
tetradic
#0C2138 #380C37 #38230C #0C380D
square
#0C2138 #380C37 #38230C #0C380D
split-complementary
#0C2138 #380D0C #37380C
monochromatic
#050F19 #050F19 #0C2138 #173F6A #225C9D

Accessibility & contrast

On white

16.28
#0C2138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#0C2138 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2138
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2138#FFFFFF#000000##FFFFFF
##0C21381.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172239
Deuteranopia (green-blind)
#111E38
Tritanopia (blue-blind)
#002629
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0c2138;
/* rgb */ color: rgb(12, 33, 56);
/* oklch */ color: oklch(24.4% 0.052 252.5);
Tailwind
colors: {
  custom: {
    50: '#515b6e',
    500: '#0c2138',
    950: '#000000',
  },
}
SCSS
$custom: #0c2138;
$custom-light: #515b6e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2138",
  "rgb": {
    "r": 12,
    "g": 33,
    "b": 56
  },
  "hsl": {
    "h": 211.364,
    "s": 64.706,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24388,
    "c": 0.05178,
    "h": 252.5
  },
  "luminance": 0.01451
}

Semantic roles & 50–950 ramp

primary
#0C2138
secondary
#74522C
accent
#9840E8
background
#F4F5F6
surface
#E7E9EC
border
#C3C5C7
text
#020407
muted
#78797A

Preview Lab

Preview with #0C2138

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

Preview Lab → · Contrast checker → · Palette generator →

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