#0C2545#0C2545

#0C2545 is a dark, moderate cyan. Relative luminance 0.018; OKLCH L 26.4% C 0.067 H 255.9°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#0C2545
RGBrgb(12, 37, 69)
HSLhsl(214, 70%, 16%)
HSVhsv(214, 83%, 27%)
CMYKcmyk(82.6%, 46.4%, 0%, 72.9%)
CIE-LABlab(14.57, 3.61, -22.90)
CIE-LCHlch(14.57, 23.18, 278.95°)
OKLaboklab(26.45% -0.0164 -0.0654)
OKLCHoklch(26.45% 0.067 255.9)
XYZxyz(1.8870, 1.8308, 5.8830)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2545 #452C0C
analogous
#0C4145 #0C2545 #0F0C45
triadic
#0C2545 #450C25 #25450C
tetradic
#0C2545 #450C41 #452C0C #0C450F
square
#0C2545 #450C41 #452C0C #0C450F
split-complementary
#0C2545 #450F0C #41450C
monochromatic
#050E1A #050E1A #0C2545 #154179 #1E5DAD

Accessibility & contrast

On white

15.37
#0C2545 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#0C2545 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2545
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2545#FFFFFF#000000##FFFFFF
##0C25451.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162846
Deuteranopia (green-blind)
#0C2244
Tritanopia (blue-blind)
#002D31
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #0c2545;
/* rgb */ color: rgb(12, 37, 69);
/* oklch */ color: oklch(26.4% 0.067 255.9);
Tailwind
colors: {
  custom: {
    50: '#545f79',
    500: '#0c2545',
    950: '#000000',
  },
}
SCSS
$custom: #0c2545;
$custom-light: #545f79;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2545",
  "rgb": {
    "r": 12,
    "g": 37,
    "b": 69
  },
  "hsl": {
    "h": 213.684,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.26446,
    "c": 0.06744,
    "h": 255.9
  },
  "luminance": 0.01831
}

Semantic roles & 50–950 ramp

primary
#0C2545
secondary
#815C2C
accent
#9F3BED
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030409
muted
#78797B

Preview Lab

Preview with #0C2545

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

Preview Lab → · Contrast checker → · Palette generator →

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