#0C2C51#0C2C51

#0C2C51 is a dark, moderate cyan. Relative luminance 0.025; OKLCH L 29.2% C 0.077 H 254.5°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#0C2C51
RGBrgb(12, 44, 81)
HSLhsl(212, 74%, 18%)
HSVhsv(212, 85%, 32%)
CMYKcmyk(85.2%, 45.7%, 0%, 68.2%)
CIE-LABlab(17.80, 3.75, -25.94)
CIE-LCHlch(17.80, 26.21, 278.23°)
OKLaboklab(29.22% -0.0206 -0.0742)
OKLCHoklch(29.22% 0.077 254.5)
XYZxyz(2.5370, 2.4733, 8.1267)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2C51 #51310C
analogous
#0C4E51 #0C2C51 #0E0C51
triadic
#0C2C51 #510C2C #2C510C
tetradic
#0C2C51 #510C4E #51310C #0C510E
square
#0C2C51 #510C4E #51310C #0C510E
split-complementary
#0C2C51 #510E0C #4E510C
monochromatic
#040E1B #040F1C #0C2C51 #144986 #1C66BC

Accessibility & contrast

On white

14.05
#0C2C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#0C2C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2C51
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2C51#FFFFFF#000000##FFFFFF
##0C2C511.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2F52
Deuteranopia (green-blind)
#0E2950
Tritanopia (blue-blind)
#00353A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #0c2c51;
/* rgb */ color: rgb(12, 44, 81);
/* oklch */ color: oklch(29.2% 0.077 254.5);
Tailwind
colors: {
  custom: {
    50: '#576482',
    500: '#0c2c51',
    950: '#000000',
  },
}
SCSS
$custom: #0c2c51;
$custom-light: #576482;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2c51",
  "rgb": {
    "r": 12,
    "g": 44,
    "b": 81
  },
  "hsl": {
    "h": 212.174,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.2922,
    "c": 0.07699,
    "h": 254.5
  },
  "luminance": 0.02474
}

Semantic roles & 50–950 ramp

primary
#0C2C51
secondary
#8C602C
accent
#9B37F1
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #0C2C51

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

Preview Lab → · Contrast checker → · Palette generator →

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