#0C2A51#0C2A51

#0C2A51 is a dark, moderate cyan. Relative luminance 0.023; OKLCH L 28.7% C 0.080 H 256.5°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#0C2A51
RGBrgb(12, 42, 81)
HSLhsl(214, 74%, 18%)
HSVhsv(214, 85%, 32%)
CMYKcmyk(85.2%, 48.1%, 0%, 68.2%)
CIE-LABlab(17.12, 5.22, -27.02)
CIE-LCHlch(17.12, 27.52, 280.93°)
OKLaboklab(28.7% -0.0186 -0.0774)
OKLCHoklch(28.7% 0.08 256.5)
XYZxyz(2.4642, 2.3279, 8.1024)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2A51 #51330C
analogous
#0C4C51 #0C2A51 #100C51
triadic
#0C2A51 #510C2A #2A510C
tetradic
#0C2A51 #510C4C #51330C #0C5110
square
#0C2A51 #510C4C #51330C #0C5110
split-complementary
#0C2A51 #51100C #4C510C
monochromatic
#040E1B #040E1C #0C2A51 #144686 #1C61BC

Accessibility & contrast

On white

14.33
#0C2A51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#0C2A51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2A51
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2A51#FFFFFF#000000##FFFFFF
##0C2A511.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162E52
Deuteranopia (green-blind)
#082750
Tritanopia (blue-blind)
#003339
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0c2a51;
/* rgb */ color: rgb(12, 42, 81);
/* oklch */ color: oklch(28.7% 0.080 256.5);
Tailwind
colors: {
  custom: {
    50: '#576382',
    500: '#0c2a51',
    950: '#000000',
  },
}
SCSS
$custom: #0c2a51;
$custom-light: #576382;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2a51",
  "rgb": {
    "r": 12,
    "g": 42,
    "b": 81
  },
  "hsl": {
    "h": 213.913,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.28696,
    "c": 0.07962,
    "h": 256.5
  },
  "luminance": 0.02328
}

Semantic roles & 50–950 ramp

primary
#0C2A51
secondary
#8C632C
accent
#A037F1
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #0C2A51

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

Preview Lab → · Contrast checker → · Palette generator →

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