#0C2540#0C2540

#0C2540 is a dark, muted cyan. Relative luminance 0.018; OKLCH L 26.1% C 0.060 H 252.6°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#0C2540
RGBrgb(12, 37, 64)
HSLhsl(211, 68%, 15%)
HSVhsv(211, 81%, 25%)
CMYKcmyk(81.2%, 42.2%, 0%, 74.9%)
CIE-LABlab(14.24, 1.40, -19.96)
CIE-LCHlch(14.24, 20.01, 274.01°)
OKLaboklab(26.08% -0.0178 -0.0568)
OKLCHoklch(26.08% 0.06 252.6)
XYZxyz(1.7383, 1.7713, 5.0998)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2540 #40270C
analogous
#0C3F40 #0C2540 #0D0C40
triadic
#0C2540 #400C25 #25400C
tetradic
#0C2540 #400C3F #40270C #0C400D
square
#0C2540 #400C3F #40270C #0C400D
split-complementary
#0C2540 #400D0C #3F400C
monochromatic
#050F1A #050F1A #0C2540 #164374 #1F61A7

Accessibility & contrast

On white

15.51
#0C2540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#0C2540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2540
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2540#FFFFFF#000000##FFFFFF
##0C25401.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192741
Deuteranopia (green-blind)
#11223F
Tritanopia (blue-blind)
#002B2F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0c2540;
/* rgb */ color: rgb(12, 37, 64);
/* oklch */ color: oklch(26.1% 0.060 252.6);
Tailwind
colors: {
  custom: {
    50: '#535f75',
    500: '#0c2540',
    950: '#000000',
  },
}
SCSS
$custom: #0c2540;
$custom-light: #535f75;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2540",
  "rgb": {
    "r": 12,
    "g": 37,
    "b": 64
  },
  "hsl": {
    "h": 211.154,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.26076,
    "c": 0.05953,
    "h": 252.6
  },
  "luminance": 0.01771
}

Semantic roles & 50–950 ramp

primary
#0C2540
secondary
#7C552C
accent
#973DEB
background
#F4F5F7
surface
#E8E9ED
border
#C4C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #0C2540

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

Preview Lab → · Contrast checker → · Palette generator →

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