#0C2847#0C2847

#0C2847 is a dark, moderate cyan. Relative luminance 0.021; OKLCH L 27.4% C 0.067 H 253.4°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#0C2847
RGBrgb(12, 40, 71)
HSLhsl(212, 71%, 16%)
HSVhsv(212, 83%, 28%)
CMYKcmyk(83.1%, 43.7%, 0%, 72.2%)
CIE-LABlab(15.75, 2.27, -22.40)
CIE-LCHlch(15.75, 22.52, 275.78°)
OKLaboklab(27.41% -0.0191 -0.0639)
OKLCHoklch(27.41% 0.067 253.4)
XYZxyz(2.0473, 2.0504, 6.2479)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2847 #472B0C
analogous
#0C4647 #0C2847 #0E0C47
triadic
#0C2847 #470C28 #28470C
tetradic
#0C2847 #470C46 #472B0C #0C470E
square
#0C2847 #470C46 #472B0C #0C470E
split-complementary
#0C2847 #470E0C #46470C
monochromatic
#040F1A #040F1A #0C2847 #15457B #1E63B0

Accessibility & contrast

On white

14.89
#0C2847 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#0C2847 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2847
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2847#FFFFFF#000000##FFFFFF
##0C28471.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192A48
Deuteranopia (green-blind)
#102546
Tritanopia (blue-blind)
#002F34
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #0c2847;
/* rgb */ color: rgb(12, 40, 71);
/* oklch */ color: oklch(27.4% 0.067 253.4);
Tailwind
colors: {
  custom: {
    50: '#55617a',
    500: '#0c2847',
    950: '#000000',
  },
}
SCSS
$custom: #0c2847;
$custom-light: #55617a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2847",
  "rgb": {
    "r": 12,
    "g": 40,
    "b": 71
  },
  "hsl": {
    "h": 211.525,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.27406,
    "c": 0.06669,
    "h": 253.4
  },
  "luminance": 0.02051
}

Semantic roles & 50–950 ramp

primary
#0C2847
secondary
#835A2C
accent
#983AEE
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030509
muted
#78797B

Preview Lab

Preview with #0C2847

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

Preview Lab → · Contrast checker → · Palette generator →

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