#0C344E#0C344E

#0C344E is a dark, moderate cyan. Relative luminance 0.031; OKLCH L 31.2% C 0.064 H 242.0°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#0C344E
RGBrgb(12, 52, 78)
HSLhsl(204, 73%, 18%)
HSVhsv(204, 85%, 31%)
CMYKcmyk(84.6%, 33.3%, 0%, 69.4%)
CIE-LABlab(20.38, -3.22, -19.83)
CIE-LCHlch(20.38, 20.09, 260.77°)
OKLaboklab(31.18% -0.0299 -0.0562)
OKLCHoklch(31.18% 0.064 242)
XYZxyz(2.7542, 3.0839, 7.6563)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C344E #4E260C
analogous
#0C4E47 #0C344E #0C134E
triadic
#0C344E #4E0C34 #344E0C
tetradic
#0C344E #470C4E #4E260C #134E0C
square
#0C344E #470C4E #4E260C #134E0C
split-complementary
#0C344E #4E0C13 #4E470C
monochromatic
#04121B #04121B #0C344E #145783 #1C7BB8

Accessibility & contrast

On white

12.99
#0C344E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#0C344E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C344E
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C344E#FFFFFF#000000##FFFFFF
##0C344E1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28354F
Deuteranopia (green-blind)
#1F2E4E
Tritanopia (blue-blind)
#003A3D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #0c344e;
/* rgb */ color: rgb(12, 52, 78);
/* oklch */ color: oklch(31.2% 0.064 242.0);
Tailwind
colors: {
  custom: {
    50: '#576b7f',
    500: '#0c344e',
    950: '#000000',
  },
}
SCSS
$custom: #0c344e;
$custom-light: #576b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c344e",
  "rgb": {
    "r": 12,
    "g": 52,
    "b": 78
  },
  "hsl": {
    "h": 203.636,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.31184,
    "c": 0.06366,
    "h": 242
  },
  "luminance": 0.03084
}

Semantic roles & 50–950 ramp

primary
#0C344E
secondary
#8A512C
accent
#8038F0
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#03060A
muted
#787A7C

Preview Lab

Preview with #0C344E

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

Preview Lab → · Contrast checker → · Palette generator →

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