#0C212F#0C212F

#0C212F is a very dark, muted cyan. Relative luminance 0.014; OKLCH L 23.8% C 0.038 H 240.2°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#0C212F
RGBrgb(12, 33, 47)
HSLhsl(204, 59%, 12%)
HSVhsv(204, 74%, 18%)
CMYKcmyk(74.5%, 29.8%, 0%, 81.6%)
CIE-LABlab(11.76, -2.97, -11.79)
CIE-LCHlch(11.76, 12.16, 255.85°)
OKLaboklab(23.8% -0.019 -0.0331)
OKLCHoklch(23.8% 0.038 240.2)
XYZxyz(1.2084, 1.3710, 2.8897)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C212F #2F1A0C
analogous
#0C2F2C #0C212F #0C102F
triadic
#0C212F #2F0C21 #212F0C
tetradic
#0C212F #2C0C2F #2F1A0C #102F0C
square
#0C212F #2C0C2F #2F1A0C #102F0C
split-complementary
#0C212F #2F0C10 #2F2C0C
monochromatic
#061118 #061118 #0C212F #184360 #256591

Accessibility & contrast

On white

16.48
#0C212F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#0C212F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C212F
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C212F#FFFFFF#000000##FFFFFF
##0C212F1.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2130
Deuteranopia (green-blind)
#161D2F
Tritanopia (blue-blind)
#002426
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #0c212f;
/* rgb */ color: rgb(12, 33, 47);
/* oklch */ color: oklch(23.8% 0.038 240.2);
Tailwind
colors: {
  custom: {
    50: '#4f5c67',
    500: '#0c212f',
    950: '#000000',
  },
}
SCSS
$custom: #0c212f;
$custom-light: #4f5c67;
$custom-dark: #000000;
JSON
{
  "hex": "#0c212f",
  "rgb": {
    "r": 12,
    "g": 33,
    "b": 47
  },
  "hsl": {
    "h": 204,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.23795,
    "c": 0.03813,
    "h": 240.2
  },
  "luminance": 0.01371
}

Semantic roles & 50–950 ramp

primary
#0C212F
secondary
#6B452C
accent
#8445E3
background
#F4F5F6
surface
#E7E9EB
border
#C3C5C6
text
#020406
muted
#78797A

Preview Lab

Preview with #0C212F

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

Preview Lab → · Contrast checker → · Palette generator →

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