#0C2A45#0C2A45

#0C2A45 is a dark, moderate cyan. Relative luminance 0.022; OKLCH L 27.8% C 0.061 H 249.0°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#0C2A45
RGBrgb(12, 42, 69)
HSLhsl(208, 70%, 16%)
HSVhsv(208, 83%, 27%)
CMYKcmyk(82.6%, 39.1%, 0%, 72.9%)
CIE-LABlab(16.32, -0.07, -20.12)
CIE-LCHlch(16.32, 20.12, 269.81°)
OKLaboklab(27.81% -0.0219 -0.0572)
OKLCHoklch(27.81% 0.061 249)
XYZxyz(2.0534, 2.1635, 5.9385)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2A45 #45270C
analogous
#0C4543 #0C2A45 #0C0D45
triadic
#0C2A45 #450C2A #2A450C
tetradic
#0C2A45 #430C45 #45270C #0D450C
square
#0C2A45 #430C45 #45270C #0D450C
split-complementary
#0C2A45 #450C0D #45430C
monochromatic
#05101A #05101A #0C2A45 #154A79 #1E69AD

Accessibility & contrast

On white

14.66
#0C2A45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#0C2A45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2A45
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2A45#FFFFFF#000000##FFFFFF
##0C2A451.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2B46
Deuteranopia (green-blind)
#152644
Tritanopia (blue-blind)
#003034
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #0c2a45;
/* rgb */ color: rgb(12, 42, 69);
/* oklch */ color: oklch(27.8% 0.061 249.0);
Tailwind
colors: {
  custom: {
    50: '#546379',
    500: '#0c2a45',
    950: '#000000',
  },
}
SCSS
$custom: #0c2a45;
$custom-light: #546379;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2a45",
  "rgb": {
    "r": 12,
    "g": 42,
    "b": 69
  },
  "hsl": {
    "h": 208.421,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.27814,
    "c": 0.06124,
    "h": 249
  },
  "luminance": 0.02164
}

Semantic roles & 50–950 ramp

primary
#0C2A45
secondary
#81542C
accent
#8F3BED
background
#F5F5F7
surface
#E9EAED
border
#C5C6C8
text
#030509
muted
#78797B

Preview Lab

Preview with #0C2A45

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

Preview Lab → · Contrast checker → · Palette generator →

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