#0C2541#0C2541

#0C2541 is a dark, moderate cyan. Relative luminance 0.018; OKLCH L 26.1% C 0.061 H 253.3°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#0C2541
RGBrgb(12, 37, 65)
HSLhsl(212, 69%, 15%)
HSVhsv(212, 82%, 25%)
CMYKcmyk(81.5%, 43.1%, 0%, 74.5%)
CIE-LABlab(14.30, 1.84, -20.55)
CIE-LCHlch(14.30, 20.63, 275.11°)
OKLaboklab(26.15% -0.0175 -0.0585)
OKLCHoklch(26.15% 0.061 253.3)
XYZxyz(1.7670, 1.7828, 5.2510)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2541 #41280C
analogous
#0C3F41 #0C2541 #0D0C41
triadic
#0C2541 #410C25 #25410C
tetradic
#0C2541 #410C3F #41280C #0C410D
square
#0C2541 #410C3F #41280C #0C410D
split-complementary
#0C2541 #410D0C #3F410C
monochromatic
#050F1A #050F1A #0C2541 #164275 #1F60A8

Accessibility & contrast

On white

15.48
#0C2541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#0C2541 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2541
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2541#FFFFFF#000000##FFFFFF
##0C25411.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182742
Deuteranopia (green-blind)
#102240
Tritanopia (blue-blind)
#002C2F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0c2541;
/* rgb */ color: rgb(12, 37, 65);
/* oklch */ color: oklch(26.1% 0.061 253.3);
Tailwind
colors: {
  custom: {
    50: '#535f76',
    500: '#0c2541',
    950: '#000000',
  },
}
SCSS
$custom: #0c2541;
$custom-light: #535f76;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2541",
  "rgb": {
    "r": 12,
    "g": 37,
    "b": 65
  },
  "hsl": {
    "h": 211.698,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.26148,
    "c": 0.0611,
    "h": 253.3
  },
  "luminance": 0.01783
}

Semantic roles & 50–950 ramp

primary
#0C2541
secondary
#7D572C
accent
#993CEC
background
#F5F5F7
surface
#E8E9ED
border
#C4C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #0C2541

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

Preview Lab → · Contrast checker → · Palette generator →

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