#0C4A5F#0C4A5F

#0C4A5F is a dark, moderate cyan. Relative luminance 0.058; OKLCH L 38.3% C 0.068 H 226.6°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#0C4A5F
RGBrgb(12, 74, 95)
HSLhsl(195, 78%, 21%)
HSVhsv(195, 87%, 37%)
CMYKcmyk(87.4%, 22.1%, 0%, 62.7%)
CIE-LABlab(28.91, -10.49, -17.65)
CIE-LCHlch(28.91, 20.54, 239.28°)
OKLaboklab(38.27% -0.0469 -0.0496)
OKLCHoklch(38.27% 0.068 226.6)
XYZxyz(4.6651, 5.8014, 11.6982)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4A5F #5F210C
analogous
#0C5F4A #0C4A5F #0C205F
triadic
#0C4A5F #5F0C4A #4A5F0C
tetradic
#0C4A5F #4A0C5F #5F210C #205F0C
square
#0C4A5F #4A0C5F #5F210C #205F0C
split-complementary
#0C4A5F #5F0C20 #5F4A0C
monochromatic
#03151B #052029 #0C4A5F #137495 #1A9FCC

Accessibility & contrast

On white

9.72
#0C4A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#0C4A5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4A5F
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4A5F#FFFFFF#000000##FFFFFF
##0C4A5F1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F4860
Deuteranopia (green-blind)
#34415F
Tritanopia (blue-blind)
#005051
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #0c4a5f;
/* rgb */ color: rgb(12, 74, 95);
/* oklch */ color: oklch(38.3% 0.068 226.6);
Tailwind
colors: {
  custom: {
    50: '#5c7c8c',
    500: '#0c4a5f',
    950: '#000000',
  },
}
SCSS
$custom: #0c4a5f;
$custom-light: #5c7c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4a5f",
  "rgb": {
    "r": 12,
    "g": 74,
    "b": 95
  },
  "hsl": {
    "h": 195.181,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.38268,
    "c": 0.06827,
    "h": 226.6
  },
  "luminance": 0.05802
}

Semantic roles & 50–950 ramp

primary
#0C4A5F
secondary
#99492D
accent
#6434F4
background
#F5F7F8
surface
#E9EEF0
border
#C5C9CB
text
#05090C
muted
#797B7D

Preview Lab

Preview with #0C4A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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